diff --git a/src/controllers/watch-status/index.ts b/src/controllers/watch-status/index.ts index 1905891..fe09656 100644 --- a/src/controllers/watch-status/index.ts +++ b/src/controllers/watch-status/index.ts @@ -6,7 +6,9 @@ import type { Env } from "~/types/env"; import { AniListIdSchema, ErrorResponse, + ErrorResponseSchema, SuccessResponse, + SuccessResponseSchema, } from "~/types/schema"; import { WatchStatus } from "~/types/title/watchStatus"; @@ -43,7 +45,7 @@ const route = createRoute({ 200: { content: { "application/json": { - schema: z.boolean(), + schema: SuccessResponseSchema(), }, }, description: "Watch status was successfully updated", @@ -51,7 +53,7 @@ const route = createRoute({ 500: { content: { "application/json": { - schema: z.boolean(), + schema: ErrorResponseSchema, }, }, description: "Failed to update watch status",