recent changes
This commit is contained in:
975
lib/i18n/en.json
975
lib/i18n/en.json
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -468,7 +468,7 @@ async function resolveCurrentShiftRange(params: { orgId: string; now: Date }) {
|
||||
}
|
||||
|
||||
async function resolveDetailRange(params: { orgId: string; input: DetailRangeInput }) {
|
||||
const now = new Date();
|
||||
const now = new Date(Math.floor(Date.now() / 60000) * 60000);
|
||||
const requestedMode = normalizedRangeMode(params.input.mode);
|
||||
const shiftEnabledCount = await prisma.orgShift.count({
|
||||
where: {
|
||||
|
||||
@@ -55,7 +55,8 @@ function parseMaxSegments(searchParams: URLSearchParams) {
|
||||
}
|
||||
|
||||
export function parseRecapTimelineRange(searchParams: URLSearchParams) {
|
||||
const end = parseDateInput(searchParams.get("end")) ?? new Date();
|
||||
const defaultEnd = new Date(Math.floor(Date.now() / 60000) * 60000);
|
||||
const end = parseDateInput(searchParams.get("end")) ?? defaultEnd;
|
||||
const startParam = parseDateInput(searchParams.get("start"));
|
||||
if (startParam && startParam < end) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user