Appearance
Documentation / @kizami/db / getPunchEventById
Function: getPunchEventById()
getPunchEventById(
db,id):Promise<{actorId:string;correctionRequestId:string|null;id:string;kind:string;metaGpsLat:number|null;metaGpsLng:number|null;metaIp:string|null;metaUa:string|null;note:string|null;occurredAt:number;recordedAt:number;source:string;supersedesId:string|null;tenantId:string;userId:string; } |null>
Defined in: packages/db/src/queries/punches.ts:72
id で1件取得する(有効性は問わない)。修正申請の「取消」承認時に対象の occurred_at を読むために使う。
Parameters
db
id
string
Returns
Promise<{ actorId: string; correctionRequestId: string | null; id: string; kind: string; metaGpsLat: number | null; metaGpsLng: number | null; metaIp: string | null; metaUa: string | null; note: string | null; occurredAt: number; recordedAt: number; source: string; supersedesId: string | null; tenantId: string; userId: string; } | null>