Skip to content

Documentation


Documentation / @kizami/db / getValidShiftDayForDate

Function: getValidShiftDayForDate()

getValidShiftDayForDate(db, params): Promise<{ breakMinutes: number; createdAt: number; createdBy: string; date: string; dayType: string; endMinutes: number; id: string; patternId: string | null; planId: string; startMinutes: number; supersedesId: string | null; tenantId: string; userId: string; } | null>

Defined in: packages/db/src/queries/shifts.ts:171

(tenantId, userId, date) の現在有効な shift_days 行を1件返す(無ければ null)。

Parameters

db

Database | SQLiteTransaction<"async", ResultSet, schema, ExtractTablesWithRelations<schema>>

params

date

string

tenantId

string

userId

string

Returns

Promise<{ breakMinutes: number; createdAt: number; createdBy: string; date: string; dayType: string; endMinutes: number; id: string; patternId: string | null; planId: string; startMinutes: number; supersedesId: string | null; tenantId: string; userId: string; } | null>