fix(commission) : replace repeated notification buttons with entry prompt
CI / Verify (push) Successful in 1m36s
CI / Build immutable images and deploy (push) Successful in 2m17s

This commit is contained in:
2026-10-02 12:07:41 +07:00 Unverified
parent 3473b55768
commit 96c27f8fc3
11 changed files with 122 additions and 107 deletions
@@ -16,10 +16,11 @@ const subscriptionSchema = z.object({
export async function GET() {
try {
await requireCommissionUser();
const user = await requireCommissionUser();
const publicKey = pushPublicKey();
if (!publicKey) throw new HttpError(503, "push-not-configured");
return Response.json({ publicKey }, { headers: { "Cache-Control": "no-store" } });
return Response.json({ publicKey, canAdmin: user.role === "admin" && user.emailVerified },
{ headers: { "Cache-Control": "no-store" } });
} catch (cause) { return errorResponse(cause); }
}