Skip to content

Documentation


Documentation / @kizami/db / listDepartments

Function: listDepartments()

listDepartments(db, tenantId): Promise<object[]>

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

テナント内の全部署をフラット配列で返す(parentId を含む。木の組み立てはアプリ層)。

Parameters

db

Database

tenantId

string

Returns

Promise<object[]>