We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5570fa9 commit c01169cCopy full SHA for c01169c
back/src/domains/user/service/user.service.ts
@@ -7,6 +7,7 @@ import {
7
Logger,
8
UnauthorizedException,
9
} from '@nestjs/common';
10
+import { Cron } from '@nestjs/schedule';
11
import * as bcrypt from 'bcryptjs';
12
import Redis from 'ioredis';
13
import { DataSource } from 'typeorm';
@@ -180,6 +181,7 @@ export class UserService {
180
181
}
182
183
184
+ @Cron('0 0 0 * * *', { name: 'removeGuestReservation' })
185
async removeAllGuest() {
186
try {
187
const queryRunner = this.dataSource.createQueryRunner();
0 commit comments