await transaction webhook
This commit is contained in:
@@ -78,7 +78,7 @@ export async function POST(request: Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (payload.type === 'user.deleted') {
|
if (payload.type === 'user.deleted') {
|
||||||
db.$transaction([
|
await db.$transaction([
|
||||||
db.user.update({
|
db.user.update({
|
||||||
where: {
|
where: {
|
||||||
id: payload.data.id,
|
id: payload.data.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user