Skip to content

Commit

Permalink
fix: fixed formating of files
Browse files Browse the repository at this point in the history
  • Loading branch information
Srish-ty committed Oct 23, 2023
1 parent 431da79 commit c33a7ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions server/schema/squiggle/squiggle.datasources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand All @@ -60,7 +60,7 @@ const SquiggleDataSources = () => ({
findByID,
find,
create,
updateContent
updateContent,
});

module.exports = SquiggleDataSources;
4 changes: 2 additions & 2 deletions server/schema/squiggle/squiggle.mutation.js
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -23,6 +23,6 @@ module.exports = new GraphQLObjectType({
newContent: { type: GraphQLString },
},
resolve: updateSquiggle,
},
},
}
});

0 comments on commit c33a7ff

Please sign in to comment.