เผยแพร่โครงสร้างเพิ่ม rabbit mq #666
This commit is contained in:
parent
2dcaa8ae4c
commit
9d9795c614
4 changed files with 105 additions and 111 deletions
|
|
@ -1091,9 +1091,8 @@ export class CommandController extends Controller {
|
|||
}
|
||||
|
||||
async cronjobCommand(@Request() request?: RequestWithUser) {
|
||||
console.log(request);
|
||||
const today = new Date();
|
||||
today.setHours(7, 0, 0, 0); //+7 เพื่อให้ตรง local time (อาจจะต้องใช้ moment)
|
||||
today.setUTCHours(0, 0, 0, 0);
|
||||
const tomorrow = new Date(today);
|
||||
tomorrow.setDate(tomorrow.getDate() + 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue