Skip to content

Documentation


Documentation / @kizami/db / index / getDepartmentById

Function: getDepartmentById() ​

getDepartmentById(db, params): Promise<{ createdAt: number; id: string; name: string; parentId: string | null; tenantId: string; } | null>

Defined in: packages/db/src/queries/departments.ts:21

Parameters ​

db ​

Database

params ​

id ​

string

tenantId ​

string

Returns ​

Promise<{ createdAt: number; id: string; name: string; parentId: string | null; tenantId: string; } | null>