fixed fetchingMatchingPatient

This commit is contained in:
2025-08-23 23:21:55 +05:30
parent f76afc43ab
commit d8ee9da6f9
2 changed files with 9 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ router.get("/by-insurance-id", async (req: Request, res: Response): Promise<any>
if (patient) {
return res.status(200).json(patient);
} else {
return res.status(404).json(null);
return res.status(200).json(null);
}
} catch (err) {
console.error("Failed to lookup patient:", err);