UI Push Deep Links und Drive Diagnose verbessern
All checks were successful
CI / Build and Deploy (push) Successful in 2m30s
All checks were successful
CI / Build and Deploy (push) Successful in 2m30s
This commit is contained in:
@@ -23,7 +23,7 @@ export async function POST(request: Request) {
|
||||
const parsed = subscriptionSchema.safeParse(body);
|
||||
|
||||
if (!parsed.success) {
|
||||
return NextResponse.json({ error: "Push-Subscription ist ungueltig." }, { status: 400 });
|
||||
return NextResponse.json({ error: "Push-Subscription ist ungültig." }, { status: 400 });
|
||||
}
|
||||
|
||||
await prisma.pushSubscription.upsert({
|
||||
@@ -57,7 +57,7 @@ export async function DELETE(request: Request) {
|
||||
const parsed = z.object({ endpoint: z.string().url() }).safeParse(body);
|
||||
|
||||
if (!parsed.success) {
|
||||
return NextResponse.json({ error: "Push-Subscription ist ungueltig." }, { status: 400 });
|
||||
return NextResponse.json({ error: "Push-Subscription ist ungültig." }, { status: 400 });
|
||||
}
|
||||
|
||||
await prisma.pushSubscription.deleteMany({
|
||||
|
||||
Reference in New Issue
Block a user