Skip to content

Commit 1959864

Browse files
committed
modify: remove comment and change cron time
1 parent 3c382ef commit 1959864

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: src/rotation/rotations.service.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export class RotationsService {
5454
) {}
5555

5656
/*
57-
* 매일 0시 0분에 내일 사서에게 메세지를 전송하는 cron job
57+
* 매일 9시 42분에 내일 사서에게 메세지를 전송하는 cron job
5858
*/
59-
@Cron('0 0 * * *', {
59+
@Cron('42 9 * * *', {
6060
name: 'sendMessageTomorrowLibrarian',
6161
timeZone: 'Asia/Seoul',
6262
})
@@ -195,7 +195,6 @@ export class RotationsService {
195195
timeZone: 'Asia/Seoul',
196196
})
197197
async setRotation(): Promise<void> {
198-
// if (getFourthWeekdaysOfMonth().indexOf(getTodayDay()) > 0) {
199198
this.logger.log('Setting rotation...');
200199

201200
const { year, month } = getNextYearAndMonth();
@@ -281,9 +280,6 @@ export class RotationsService {
281280
}
282281

283282
this.logger.log('Successfully set rotation!');
284-
// } else {
285-
// // skipped...
286-
// }
287283
}
288284

289285
/*

0 commit comments

Comments
 (0)