From 26c8a52e4b92fa6a657361954e6e500853c9b256 Mon Sep 17 00:00:00 2001 From: Chris Bongers Date: Wed, 29 Jan 2025 16:39:51 +0200 Subject: [PATCH] fix: pr feedback --- src/schema/posts.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/schema/posts.ts b/src/schema/posts.ts index a92c8c203..4ceb7f09d 100644 --- a/src/schema/posts.ts +++ b/src/schema/posts.ts @@ -2345,9 +2345,8 @@ export const resolvers: IResolvers = traceResolvers< ctx: AuthContext, info, ): Promise => { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const [post, __, ___] = await Promise.all([ - ctx.con.getRepository(Post).findOneByOrFail({ id }), + const [post] = await Promise.all([ + ctx.con.getRepository(Post).findOneOrFail({ where: { id } }), ensureSourcePermissions(ctx, sourceId, SourcePermissions.Post), ensurePostRateLimit(ctx.con, ctx.userId), ]);