fix: device id not being read correctly in "mark episode as watched" route
This commit is contained in:
@@ -72,7 +72,7 @@ app.openapi(route, async (c) => {
|
|||||||
return c.json(ErrorResponse, { status: 401 });
|
return c.json(ErrorResponse, { status: 401 });
|
||||||
}
|
}
|
||||||
|
|
||||||
const deviceId = c.req.header("X-Aniplay-DeviceId")!;
|
const deviceId = c.req.header("X-Aniplay-Device-Id")!;
|
||||||
const aniListId = Number(c.req.param("aniListId"));
|
const aniListId = Number(c.req.param("aniListId"));
|
||||||
const { episodeNumber, isComplete } =
|
const { episodeNumber, isComplete } =
|
||||||
await c.req.json<typeof MarkEpisodeAsWatchedRequest._type>();
|
await c.req.json<typeof MarkEpisodeAsWatchedRequest._type>();
|
||||||
|
|||||||
Reference in New Issue
Block a user