Skip to content

Commit ee789a2

Browse files
committed
cleanup uptime router
1 parent 6051ee9 commit ee789a2

File tree

2 files changed

+62
-188
lines changed

2 files changed

+62
-188
lines changed

apps/uptime/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const app = new Elysia()
8989

9090
const headerSchema = z.object({
9191
"upstash-signature": z.string(),
92-
"upstash-schedule-id": z.string(),
92+
"x-schedule-id": z.string(),
9393
"upstash-retried": z.string().optional(),
9494
});
9595

@@ -108,7 +108,7 @@ const app = new Elysia()
108108
);
109109
}
110110

111-
const { "upstash-signature": signature, "upstash-schedule-id": scheduleId } =
111+
const { "upstash-signature": signature, "x-schedule-id": scheduleId } =
112112
parsed.data;
113113

114114
const isValid = await receiver.verify({

0 commit comments

Comments
 (0)