enzostvs HF staff commited on
Commit
cc92c83
·
1 Parent(s): 615c1b6

fix reaction

Browse files
src/routes/api/community/reaction/+server.ts CHANGED
@@ -81,7 +81,11 @@ export async function POST({ cookies, request } : RequestEvent) {
81
  const new_reaction = await prisma.reaction.create({
82
  data: {
83
  emoji,
84
- galleryId: gallery_id,
 
 
 
 
85
  user: {
86
  connect: {
87
  sub: is_token_available.sub
 
81
  const new_reaction = await prisma.reaction.create({
82
  data: {
83
  emoji,
84
+ gallery: {
85
+ connect: {
86
+ id: gallery_id
87
+ }
88
+ },
89
  user: {
90
  connect: {
91
  sub: is_token_available.sub