Skip to content

Commit c01169c

Browse files
committed
✨ feat: 매일 0시0분0초 마다 Geust유저 정보 자동으로 삭제시키는 기능 추가
Issue Resolved: #
1 parent 5570fa9 commit c01169c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

back/src/domains/user/service/user.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
Logger,
88
UnauthorizedException,
99
} from '@nestjs/common';
10+
import { Cron } from '@nestjs/schedule';
1011
import * as bcrypt from 'bcryptjs';
1112
import Redis from 'ioredis';
1213
import { DataSource } from 'typeorm';
@@ -180,6 +181,7 @@ export class UserService {
180181
}
181182
}
182183

184+
@Cron('0 0 0 * * *', { name: 'removeGuestReservation' })
183185
async removeAllGuest() {
184186
try {
185187
const queryRunner = this.dataSource.createQueryRunner();

0 commit comments

Comments
 (0)