format and update

This commit is contained in:
2025-09-11 12:28:13 -05:00
parent 136047ca25
commit 0ce699d44c
5 changed files with 20 additions and 12 deletions

View File

@@ -312,7 +312,7 @@ export const listHistory = query({
for (const s of result.page) {
const owner = await getDisplay(s.userId);
const updatedBy =
(s.updatedBy && s.updatedBy !== s.userId)
s.updatedBy && s.updatedBy !== s.userId
? await getDisplay(s.updatedBy)
: null;
@@ -354,8 +354,8 @@ export const endOfShiftUpdate = action({
message: 'End of shift',
});
} else if (hour === 11) {
const ms = ((60-minute) % 60) * 60 * 1000;
const ms = ((60 - minute) % 60) * 60 * 1000;
await ctx.scheduler.runAfter(ms, api.statuses.endOfShiftUpdate);
} else return;
}
},
});