feat(gro-47): customer portal confirm/cancel appointments #124

Closed
groombook-engineer[bot] wants to merge 5 commits from fleaflicker/gro47-confirm-cancel-clean into main
Showing only changes of commit 208e1fb5bc - Show all commits
+9 -9
View File
@@ -135,10 +135,10 @@ portalRouter.post("/appointments/:id/confirm", async (c) => {
.returning();
return c.json({
id: updated.id,
confirmationStatus: updated.confirmationStatus,
confirmedAt: updated.confirmedAt,
updatedAt: updated.updatedAt,
id: updated!.id,
confirmationStatus: updated!.confirmationStatus,
confirmedAt: updated!.confirmedAt,
updatedAt: updated!.updatedAt,
});
});
@@ -195,11 +195,11 @@ portalRouter.post("/appointments/:id/cancel", async (c) => {
.returning();
return c.json({
id: updated.id,
status: updated.status,
confirmationStatus: updated.confirmationStatus,
cancelledAt: updated.cancelledAt,
updatedAt: updated.updatedAt,
id: updated!.id,
status: updated!.status,
confirmationStatus: updated!.confirmationStatus,
cancelledAt: updated!.cancelledAt,
updatedAt: updated!.updatedAt,
});
});