Skip to content

Documentation


Documentation / @kizami/db / index / 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; requiredSteps: number; status: string; step1DecidedAt: number | null; step1DecidedBy: string | null; targetEventId: string | null; tenantId: string; userId: string; } | null>

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

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; requiredSteps: number; status: string; step1DecidedAt: number | null; step1DecidedBy: string | null; targetEventId: string | null; tenantId: string; userId: string; } | null>