checkpoint date working

This commit is contained in:
2025-06-01 18:35:51 +05:30
parent c91d5efb05
commit 0844c1296e
15 changed files with 511 additions and 77 deletions

View File

@@ -227,7 +227,8 @@ export const storage: IStorage = {
try {
await db.patient.delete({ where: { id } });
} catch (err) {
throw new Error(`Patient with ID ${id} not found`);
console.error("Error deleting patient:", err);
throw new Error(`Failed to delete patient: ${err}`);
}
},