From 0ebe343d6a4acff1a2062f55f3ab05397acf8cd8 Mon Sep 17 00:00:00 2001 From: Sendou Date: Fri, 14 Jun 2019 16:21:36 +0300 Subject: [PATCH] fixed bug with resolver --- index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.js b/index.js index 904154cc0..42bafd37d 100644 --- a/index.js +++ b/index.js @@ -243,9 +243,6 @@ const typeDefs = gql` deleteBuild( id: ID! ): Boolean - updateBuild( - build: Build! - ): Boolean } ` @@ -605,7 +602,7 @@ const resolvers = { } }, Mutation: { - editTwitter: async (root, args, ctx) => { + updateTwitter: async (root, args, ctx) => { if (!ctx.user.id !== PROCESS.ENV.ADMIN_ID) throw new AuthenticationError('not admin') const player = await Player.findOne({ unique_id: args.unique_id })