From c33a7ff57f4630fd765697deb5dd180539bfd912 Mon Sep 17 00:00:00 2001 From: Srishty M Date: Mon, 23 Oct 2023 15:20:58 +0530 Subject: [PATCH] fix: fixed formating of files --- server/schema/squiggle/squiggle.datasources.js | 4 ++-- server/schema/squiggle/squiggle.mutation.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/schema/squiggle/squiggle.datasources.js b/server/schema/squiggle/squiggle.datasources.js index cf10c125..fde930d5 100644 --- a/server/schema/squiggle/squiggle.datasources.js +++ b/server/schema/squiggle/squiggle.datasources.js @@ -51,7 +51,7 @@ const updateContent = async (id, newContent) => { return _squiggle; } catch (error) { - throw APIError("failed to update squiggle content.", error); + throw APIError('failed to update squiggle content.', error); } }; @@ -60,7 +60,7 @@ const SquiggleDataSources = () => ({ findByID, find, create, - updateContent + updateContent, }); module.exports = SquiggleDataSources; diff --git a/server/schema/squiggle/squiggle.mutation.js b/server/schema/squiggle/squiggle.mutation.js index 2b6ca038..c22052e5 100644 --- a/server/schema/squiggle/squiggle.mutation.js +++ b/server/schema/squiggle/squiggle.mutation.js @@ -1,4 +1,4 @@ -const { GraphQLObjectType, GraphQLNonNull, GraphQLID ,GraphQLString } = require('../scalars'); +const { GraphQLObjectType, GraphQLNonNull, GraphQLID, GraphQLString } = require('../scalars'); const { createSquiggle, updateSquiggle } = require('./squiggle.resolver'); const SquiggleType = require('./squiggle.type'); @@ -23,6 +23,6 @@ module.exports = new GraphQLObjectType({ newContent: { type: GraphQLString }, }, resolve: updateSquiggle, + }, }, -} });