Skip to content

Documentation


Documentation / @kizami/db / index / supersedeProposedLeaveGrantProposals

Function: supersedeProposedLeaveGrantProposals() ​

supersedeProposedLeaveGrantProposals(db, params): Promise<object[]>

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

まだ決裁されていない(proposed の)予告のうち、指定の基準日のものを superseded にする。 POST /leave/grants/auto が予告を経由せず付与を作ったときに呼ぶ(依頼の決定)。

Parameters ​

db ​

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

params ​

grantedOnDates ​

string[]

tenantId ​

string

userId ​

string

Returns ​

Promise<object[]>