Skip to content

Documentation


Documentation / @kizami/db / index / getShiftPlanById

Function: getShiftPlanById() ​

getShiftPlanById(db, params): Promise<{ createdAt: number; id: string; periodEnd: string; periodStart: string; publishedAt: number | null; publishedBy: string | null; tenantId: string; userId: string; } | null>

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

Parameters ​

db ​

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

params ​

id ​

string

tenantId ​

string

Returns ​

Promise<{ createdAt: number; id: string; periodEnd: string; periodStart: string; publishedAt: number | null; publishedBy: string | null; tenantId: string; userId: string; } | null>