We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e649705 commit 9013807Copy full SHA for 9013807
src/graphql/post.ts
@@ -707,7 +707,15 @@ export const resolvers: IResolvers<any, ApolloContext> = {
707
708
const tagsData = await Promise.all(tags.map(Tag.findOrCreate));
709
await Promise.all([PostsTags.syncPostTags(post.id, tagsData), postRepo.save(post)]);
710
- await Promise.all([is_temp ? null : searchSync.update(post.id), cache.remove(...cacheKeys)]);
+
711
+ try {
712
+ await Promise.all([
713
+ is_temp ? null : searchSync.update(post.id),
714
+ cache.remove(...cacheKeys)
715
+ ]);
716
+ } catch (e) {
717
+ console.log(e);
718
+ }
719
720
return post;
721
},
0 commit comments