Skip to content

Documentation


Documentation / @kizami/db / getLeaveGrantProposal

Function: getLeaveGrantProposal()

getLeaveGrantProposal(db, params): Promise<{ attendanceRate: string; createdAt: number; days: number; decidedAt: number | null; decidedBy: string | null; decisionNote: string | null; expiresOn: string; grantedOn: string; grantId: string | null; id: string; leaveType: string; proposedAt: number; status: string; tenantId: string; userId: string; } | null>

Defined in: packages/db/src/queries/leave.ts:380

Parameters

db

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

params

id

string

tenantId

string

Returns

Promise<{ attendanceRate: string; createdAt: number; days: number; decidedAt: number | null; decidedBy: string | null; decisionNote: string | null; expiresOn: string; grantedOn: string; grantId: string | null; id: string; leaveType: string; proposedAt: number; status: string; tenantId: string; userId: string; } | null>