fixed bug with resolver

This commit is contained in:
Sendou
2019-06-14 16:21:36 +03:00
parent 2c84ceb1ab
commit 0ebe343d6a

View File

@@ -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 })