Update Next.js and dependencies
This commit is contained in:
parent
c79ba4638c
commit
2c975edd09
10 changed files with 96 additions and 41 deletions
|
|
@ -20,6 +20,8 @@ type AcceptInvitePayload = {
|
|||
password: string
|
||||
}
|
||||
|
||||
const JSON_NULL = Prisma.JsonNull as Prisma.NullableJsonNullValueInput
|
||||
|
||||
function validatePassword(password: string) {
|
||||
return password.length >= 8
|
||||
}
|
||||
|
|
@ -66,7 +68,7 @@ export async function GET(_request: Request, context: { params: Promise<{ token:
|
|||
data: {
|
||||
inviteId: invite.id,
|
||||
type: status,
|
||||
payload: Prisma.JsonNull,
|
||||
payload: JSON_NULL,
|
||||
actorId: null,
|
||||
},
|
||||
})
|
||||
|
|
@ -109,7 +111,7 @@ export async function POST(request: Request, context: { params: Promise<{ token:
|
|||
data: {
|
||||
inviteId: invite.id,
|
||||
type: "expired",
|
||||
payload: Prisma.JsonNull,
|
||||
payload: JSON_NULL,
|
||||
actorId: null,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue