Skip to content

Commit

Permalink
feat: Updated server/graphql/modules/dice-roller-c
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 15, 2024
1 parent b76788e commit 08da519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/graphql/modules/dice-roller-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const GraphQLSharedResourceEnumType = t.unionType<
name: "SharedResource",
types: [NotesModule.GraphQLNoteType, ImageModule.GraphQLImageType],
resolveType: (input) => {
if (NotesModule.isTypeOfNote(input)) return NotesModule.GraphQLNoteType;
if (NotesModule.isTypeOfResourceNote(input)) return NotesModule.GraphQLNoteType;
if (ImageModule.isTypeOfImage(input)) return ImageModule.GraphQLImageType;
throw new Error("Invalid State.");
},
Expand Down

0 comments on commit 08da519

Please sign in to comment.