From 15cd101bb48d1c13ada32cc5da93caabbc15ac5c Mon Sep 17 00:00:00 2001 From: Jan Dvorak Date: Fri, 23 Feb 2024 13:23:19 +0100 Subject: [PATCH] Update apollo.js to use async --- tools/static-assets/skel-apollo/server/apollo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/static-assets/skel-apollo/server/apollo.js b/tools/static-assets/skel-apollo/server/apollo.js index 1ab9d29547..eeee0be6bf 100644 --- a/tools/static-assets/skel-apollo/server/apollo.js +++ b/tools/static-assets/skel-apollo/server/apollo.js @@ -9,8 +9,8 @@ const express = WebAppInternals.NpmModules.express.module; const resolvers = { Query: { - getLink: async (obj, { id }) => LinksCollection.findOne(id), - getLinks: async () => LinksCollection.find().fetch() + getLink: async (obj, { id }) => LinksCollection.findOneAsync(id), + getLinks: async () => LinksCollection.find().fetchAsync() } };