From 06315e8a816e34c2f4ff7ec689285fde9b42aa42 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Thu, 3 Oct 2024 10:26:58 +0200 Subject: [PATCH] fix: :rotating_light: Replace ts-ignore with ts-expect-error --- classes/functions/user.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/functions/user.ts b/classes/functions/user.ts index c2885a1a..30eaf392 100644 --- a/classes/functions/user.ts +++ b/classes/functions/user.ts @@ -82,15 +82,15 @@ export const userExtras = { }; export const userExtrasTemplate = (name: string) => ({ - // @ts-ignore + // @ts-expect-error sql is a template tag, so it gets confused when we use it as a function followerCount: sql([ `(SELECT COUNT(*) FROM "Relationships" "relationships" WHERE ("relationships"."ownerId" = "${name}".id AND "relationships"."following" = true))`, ]).as("follower_count"), - // @ts-ignore + // @ts-expect-error sql is a template tag, so it gets confused when we use it as a function followingCount: sql([ `(SELECT COUNT(*) FROM "Relationships" "relationshipSubjects" WHERE ("relationshipSubjects"."subjectId" = "${name}".id AND "relationshipSubjects"."following" = true))`, ]).as("following_count"), - // @ts-ignore + // @ts-expect-error sql is a template tag, so it gets confused when we use it as a function statusCount: sql([ `(SELECT COUNT(*) FROM "Notes" WHERE "Notes"."authorId" = "${name}".id)`, ]).as("status_count"),