♻️ refactor: update issue-statuses.ts
swadhinbiswas committed 3 months ago
8aac430
1 parent 61297cb
commit 8aac430
1 file changed
+2 -2
Showing 1 changed file+2-2
▼src/pages/api/repos/[owner]/[repo]/settings/issue-statuses.ts
+2-2
| @@ -4,7 +4,7 @@ import { withErrorHandler, success, badRequest, unauthorized } from "@/lib/api"; | ||
4 | 4 | import { eq, asc } from "drizzle-orm"; |
5 | 5 | import { nanoid } from "nanoid"; |
6 | 6 | |
7 | -export const GET: APIRoute = withErrorHandler(async ({ params, locals }: APIContext) => { | |
7 | +export const GET: APIRoute = withErrorHandler(async ({ locals }: APIContext) => { | |
8 | 8 | const { repo } = locals as any; |
9 | 9 | const db = getDatabase(); |
10 | 10 | |
| @@ -16,7 +16,7 @@ export const GET: APIRoute = withErrorHandler(async ({ params, locals }: APICont | ||
16 | 16 | return success(statuses); |
17 | 17 | }); |
18 | 18 | |
19 | -export const POST: APIRoute = withErrorHandler(async ({ params, request, locals }: APIContext) => { | |
19 | +export const POST: APIRoute = withErrorHandler(async ({ request, locals }: APIContext) => { | |
20 | 20 | const { repo, user } = locals as any; |
21 | 21 | const db = getDatabase(); |
22 | 22 | |
23 | 23 | |