Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
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 |
|