|
|
@@ -36,9 +36,9 @@ export class MomentsService {
|
|
|
private readonly chatService: ChatService,
|
|
|
private readonly likesService: LikesService
|
|
|
) {
|
|
|
- // setInterval(() => {
|
|
|
- // this.automaticallySendMoments();
|
|
|
- // }, 60 * 1000); // 60 seconds
|
|
|
+ setInterval(() => {
|
|
|
+ this.automaticallySendMoments();
|
|
|
+ }, 60 * 60 * 1000);
|
|
|
}
|
|
|
|
|
|
async findAll(req: PageRequest<Moments>, userId: number): Promise<Pagination<Moments>> {
|