Should be the last thing to do for migration
This commit is contained in:
parent
5b2128847b
commit
4aeaa68077
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user