From d6ab6a0b2bbe8b59d9d4b078d44a3a52aa2f10f7 Mon Sep 17 00:00:00 2001 From: Potenz Date: Sat, 13 Dec 2025 02:11:52 +0530 Subject: [PATCH] fix - id error fix --- apps/Backend/src/routes/insuranceCreds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/Backend/src/routes/insuranceCreds.ts b/apps/Backend/src/routes/insuranceCreds.ts index 589b91a..fcf813e 100644 --- a/apps/Backend/src/routes/insuranceCreds.ts +++ b/apps/Backend/src/routes/insuranceCreds.ts @@ -96,7 +96,7 @@ router.delete("/:id", async (req: Request, res: Response): Promise => { if (isNaN(id)) return res.status(400).send("Invalid ID"); // 1) Check existence - const existing = await storage.getInsuranceCredential(userId); + const existing = await storage.getInsuranceCredential(id); if (!existing) return res.status(404).json({ message: "Credential not found" });