♻️ refactor: update index.ts
swadhinbiswas committed 3 months ago
e541e04
1 parent eb43872
commit e541e04
1 file changed
+1 -2
Showing 1 changed file+1-2
▼src/pages/api/repos/[owner]/[repo]/pulls/[number]/index.ts
+1-2
| @@ -3,13 +3,12 @@ import { getDatabase, schema } from "@/db"; | ||
3 | 3 | import type { NodePgDatabase } from "drizzle-orm/node-postgres"; |
4 | 4 | import { canWriteRepo, canReadRepo } from "@/lib/permissions"; |
5 | 5 | import type { APIRoute } from "astro"; |
6 | -import { and, eq, desc } from "drizzle-orm"; | |
6 | +import { and, eq } from "drizzle-orm"; | |
7 | 7 | import { withErrorHandler } from "@/lib/errors"; |
8 | 8 | import { logger } from "@/lib/logger"; |
9 | 9 | import { unauthorized, badRequest, notFound, success, forbidden } from "@/lib/api"; |
10 | 10 | import { autoLinkPR } from "@/lib/pr-issue-linking"; |
11 | 11 | import { canMerge } from "@/lib/merge-queue"; |
12 | -import { checkCodeOwnerApprovalsForPR } from "@/lib/pr-codeowner"; | |
13 | 12 | |
14 | 13 | // GET: Get PR details |
15 | 14 | export const GET: APIRoute = withErrorHandler(async ({ params, locals }) => { |
16 | 15 | |