1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

fix(api): fix recent images showing other users images

This commit is contained in:
diced 2021-09-12 21:31:43 -07:00
parent 4728258750
commit d956f4ed3d
No known key found for this signature in database
GPG key ID: 85AB64C74535D76E

View file

@ -11,6 +11,9 @@ async function handler(req: NextApiReq, res: NextApiRes) {
let images = await prisma.image.findMany({
take,
where: {
userId: user.id,
},
orderBy: {
created_at: 'desc'
},