Skip to content

Scheduling infrastructure for absolutely everyone.

Ensure credential objects come oldest first (#1258)

Rory Hughesc109ab1e3064
diff --git a/pages/api/book/confirm.ts b/pages/api/book/confirm.ts
index 930af129cab..7aa599bb7ea 100644
--- a/pages/api/book/confirm.ts
+++ b/pages/api/book/confirm.ts
@@ -63,7 +63,9 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
},
select: {
id: true,
- credentials: true,
+ credentials: {
+ orderBy: { id: "desc" as Prisma.SortOrder },
+ },
timeZone: true,
email: true,
name: true,