Skip to content

Commit

Permalink
feat: Updated server/graphql/modules/image.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 15, 2024
1 parent 08da519 commit 100eeb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/graphql/modules/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ImageModel = io.type(
"Image"
);

export const isTypeOfImage = ImageModel.is;
export const isValidResourceNote = ImageModel.is;

export type ImageModelType = io.TypeOf<typeof ImageModel>;

Expand All @@ -43,7 +43,7 @@ export const resolveImage = (id: string) =>
export const GraphQLImageType = t.objectType<ImageModelType>({
name: "Image",
interfaces: [Relay.GraphQLNodeInterface],
isTypeOf: isTypeOfImage,
isTypeOf: isValidResourceNote,
fields: () => [
t.field({
name: "id",
Expand Down

0 comments on commit 100eeb9

Please sign in to comment.