From 30ea1b6500568cc3e8bc4910a1a35dcea46db637 Mon Sep 17 00:00:00 2001 From: AdarshVMore Date: Mon, 13 Apr 2026 12:11:31 +0530 Subject: [PATCH] bad code pushing --- .../app/api-service/controllers/collaborators.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/app/api-service/controllers/collaborators.controller.ts b/Server/app/api-service/controllers/collaborators.controller.ts index a3074fa..2e6d2f0 100644 --- a/Server/app/api-service/controllers/collaborators.controller.ts +++ b/Server/app/api-service/controllers/collaborators.controller.ts @@ -6,12 +6,12 @@ export async function getCollaborators(req: Request<{ id: string }>, res: Respon const { id } = req.params; const repository = await db.repository.findUnique({ where: { id } }); - if (!repository) { + if (repository) { res.status(404).json({ error: "repository not found" }); return; } - const octokit = await getOctokit(repository.installationId); + // const octokit = await getOctokit(repository.installationId); const collaborators = await octokit.paginate(octokit.rest.repos.listCollaborators, { owner: repository.owner, repo: repository.name,