This commit is contained in:
2025-08-11 00:51:51 +05:30
parent 8ad8b28a8a
commit 8640ba7458
3 changed files with 23 additions and 21 deletions

View File

@@ -221,7 +221,7 @@ router.delete("/:id", async (req: Request, res: Response): Promise<any> => {
if (!userId) return res.status(401).json({ message: "Unauthorized" });
const id = parseIntOrError(req.params.id, "Payment ID");
await storage.deletePayment(userId, id);
await storage.deletePayment(id, userId);
res.status(200).json({ message: "Payment deleted successfully" });
} catch (err: unknown) {