Skip to content

Commit

Permalink
refactor(CreateOrUpdateArticleReplyFactory): typing rootValue and con…
Browse files Browse the repository at this point in the history
…text
  • Loading branch information
MrOrz committed Jul 14, 2024
1 parent f69f225 commit b3416a3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/graphql/mutations/CreateOrUpdateArticleReplyFeedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { ArticleReplyFeedback } from 'rumors-db/schema/articlereplyfeedback
import type { Reply } from 'rumors-db/schema/replies';

import client from 'util/client';
import { ResolverContext } from 'contextFactory';

export function getArticleReplyFeedbackId({
articleId,
Expand Down Expand Up @@ -107,7 +108,7 @@ export default {
comment: { type: GraphQLString },
},
async resolve(
rootValue,
rootValue: unknown,
{
articleId,
replyId,
Expand All @@ -119,7 +120,7 @@ export default {
vote: 1 | 0 | -1;
comment?: string | null;
},
{ user, loaders }
{ user, loaders }: ResolverContext
) {
assertUser(user);

Expand Down

0 comments on commit b3416a3

Please sign in to comment.