feat(gro-47): customer portal confirm/cancel appointments #124
@@ -135,10 +135,10 @@ portalRouter.post("/appointments/:id/confirm", async (c) => {
|
|||||||
.returning();
|
.returning();
|
||||||
|
|
||||||
return c.json({
|
return c.json({
|
||||||
id: updated.id,
|
id: updated!.id,
|
||||||
confirmationStatus: updated.confirmationStatus,
|
confirmationStatus: updated!.confirmationStatus,
|
||||||
confirmedAt: updated.confirmedAt,
|
confirmedAt: updated!.confirmedAt,
|
||||||
updatedAt: updated.updatedAt,
|
updatedAt: updated!.updatedAt,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -195,11 +195,11 @@ portalRouter.post("/appointments/:id/cancel", async (c) => {
|
|||||||
.returning();
|
.returning();
|
||||||
|
|
||||||
return c.json({
|
return c.json({
|
||||||
id: updated.id,
|
id: updated!.id,
|
||||||
status: updated.status,
|
status: updated!.status,
|
||||||
confirmationStatus: updated.confirmationStatus,
|
confirmationStatus: updated!.confirmationStatus,
|
||||||
cancelledAt: updated.cancelledAt,
|
cancelledAt: updated!.cancelledAt,
|
||||||
updatedAt: updated.updatedAt,
|
updatedAt: updated!.updatedAt,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user