return latest bookings for example bookings for zapier

pull/6170/head
CarinaWolli 2022-12-23 09:49:19 +01:00
parent 38d242add9
commit b69f393a73
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
where: { where: {
userId: validKey.userId, userId: validKey.userId,
}, },
orderBy: {
id: "desc",
},
select: { select: {
title: true, title: true,
description: true, description: true,