enzostvs HF staff commited on
Commit
e6de30f
β€’
1 Parent(s): 752d7f4

wrong condition

Browse files
src/routes/api/community/[id]/+server.ts CHANGED
@@ -154,8 +154,7 @@ export async function DELETE({ params, cookies }: RequestEvent) {
154
 
155
  const gallery = await prisma.gallery.findFirst({
156
  where: {
157
- id,
158
- userId: user.sub
159
  }
160
  })
161
 
 
154
 
155
  const gallery = await prisma.gallery.findFirst({
156
  where: {
157
+ id
 
158
  }
159
  })
160