Skip to content

Commit 00c6995

Browse files
committed
cleanuo
1 parent 8467e3f commit 00c6995

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/rpc/src/routers/uptime.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ export const uptimeRouter = {
102102
const { scheduleId } = await client.schedules.create({
103103
destination: UPTIME_DESTINATION,
104104
cron: CRON_GRANULARITIES[input.granularity],
105-
body: JSON.stringify({ websiteId: input.websiteId }),
105+
headers: {
106+
"Content-Type": "application/json",
107+
"X-Website-Id": input.websiteId,
108+
}
106109
});
107110

108111
if (!scheduleId) {

0 commit comments

Comments
 (0)