Should be the last thing to do for migration

This commit is contained in:
Gabriel Brown 2024-07-20 21:39:53 -05:00
parent 5b2128847b
commit 4aeaa68077

View File

@ -127,7 +127,7 @@ export const legacyUpdateEmployeeStatusByName = async (technicians: { name: stri
for (const technician of technicians) { for (const technician of technicians) {
const { name, status } = technician; const { name, status } = technician;
const date = new Date(); const date = new Date();
const utcdate: Date = new Date(date.setHours(date.getUTCHours() - 12)); const utcdate: Date = new Date(date.setHours(date.getUTCHours() - 9));
const query = sql` const query = sql`
UPDATE users UPDATE users
SET status = ${status}, updatedAt = ${utcdate} SET status = ${status}, updatedAt = ${utcdate}