Skip to content

Documentation


Documentation / @kizami/db / getCorrectionRequest

Function: getCorrectionRequest()

getCorrectionRequest(db, id): Promise<{ createdAt: number; decidedAt: number | null; decidedBy: string | null; decisionNote: string | null; id: string; proposedKind: string | null; proposedOccurredAt: number | null; reason: string; requestedBy: string; status: string; targetEventId: string | null; tenantId: string; userId: string; } | null>

Defined in: packages/db/src/queries/corrections.ts:76

id から1件取得する(tenant スコープはしない。呼び出し側で tenantId 一致を確認すること)。

Parameters

db

Database

id

string

Returns

Promise<{ createdAt: number; decidedAt: number | null; decidedBy: string | null; decisionNote: string | null; id: string; proposedKind: string | null; proposedOccurredAt: number | null; reason: string; requestedBy: string; status: string; targetEventId: string | null; tenantId: string; userId: string; } | null>