From 99eb7e507b141cb2d99595bda54057b954eb36e4 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Wed, 20 Jul 2022 19:00:00 +0300 Subject: [PATCH] fix: temp attempt to fix broken posts --- api/functions/graphql/types/post.js | 2 +- environments/.dev.prod-server.env | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/functions/graphql/types/post.js b/api/functions/graphql/types/post.js index 3beddca..ee8c10b 100644 --- a/api/functions/graphql/types/post.js +++ b/api/functions/graphql/types/post.js @@ -72,7 +72,7 @@ const Story = objectType({ t.string('cover_image'); t.nonNull.list.nonNull.field('comments', { type: "PostComment", - resolve: (parent) => prisma.story.findUnique({ where: { id: parent.id } }).comments() + resolve: (parent) => [] }); t.nonNull.list.nonNull.field('tags', { type: "Tag", diff --git a/environments/.dev.prod-server.env b/environments/.dev.prod-server.env index 65016b7..8d3f82e 100644 --- a/environments/.dev.prod-server.env +++ b/environments/.dev.prod-server.env @@ -1 +1 @@ -REACT_APP_API_END_POINT = https://makers.bolt.fu/.netlify/functions \ No newline at end of file +REACT_APP_API_END_POINT = https://makers.bolt.fun/.netlify/functions \ No newline at end of file