format and update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user