เผยแพร่โครงสร้างเพิ่ม rabbit mq #666

This commit is contained in:
AdisakKanthawilang 2024-10-22 10:28:21 +07:00
parent 2dcaa8ae4c
commit 9d9795c614
4 changed files with 105 additions and 111 deletions

View file

@ -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);