wuyi před 2 roky
rodič
revize
4e6cc389bc
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      src/moments/moments.service.ts

+ 3 - 3
src/moments/moments.service.ts

@@ -36,9 +36,9 @@ export class MomentsService {
         private readonly chatService: ChatService,
         private readonly chatService: ChatService,
         private readonly likesService: LikesService
         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>> {
     async findAll(req: PageRequest<Moments>, userId: number): Promise<Pagination<Moments>> {