Skip to content

Documentation


Documentation / @kizami/db / index / getClosingSnapshotsForUsers

Function: getClosingSnapshotsForUsers() ​

getClosingSnapshotsForUsers(db, params): Promise<Map<string, object[]>>

Defined in: packages/db/src/queries/closings.ts:262

複数ユーザーについて、現在のスナップショットをまとめて返す(CSVエクスポートが対象範囲の ユーザーをまとめて出力するため)。userId → snapshot[] のマップ。

Parameters ​

db ​

Database

params ​

period ​

string

tenantId ​

string

userIds ​

string[]

Returns ​

Promise<Map<string, object[]>>