Skip to content

Documentation


Documentation / @kizami/db / getLatestInvitationForUser

Function: getLatestInvitationForUser()

getLatestInvitationForUser(db, params): Promise<{ acceptedAt: number | null; createdAt: number; createdBy: string; expiresAt: number; id: string; revokedAt: number | null; tenantId: string; tokenHash: string; userId: string; } | null>

Defined in: packages/db/src/queries/invitations.ts:106

あるユーザーの最新の招待(作成日時降順の先頭1件)。招待が一度も無ければ null。

Parameters

db

Database

params

tenantId

string

userId

string

Returns

Promise<{ acceptedAt: number | null; createdAt: number; createdBy: string; expiresAt: number; id: string; revokedAt: number | null; tenantId: string; tokenHash: string; userId: string; } | null>