return latest bookings for example bookings for zapier
parent
38d242add9
commit
b69f393a73
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue