fix(api): fix recent images showing other users images
This commit is contained in:
parent
4728258750
commit
d956f4ed3d
1 changed files with 3 additions and 0 deletions
|
@ -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'
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue