From 4f1dd016103cbd34d1bfe098f46b79f035a64470 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 1 Aug 2026 06:10:07 +0000 Subject: [PATCH] chore(RS+): remove unused knip exports --- src/utilities/campaignAuth.ts | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/utilities/campaignAuth.ts b/src/utilities/campaignAuth.ts index 16544333..0c8ebc56 100644 --- a/src/utilities/campaignAuth.ts +++ b/src/utilities/campaignAuth.ts @@ -16,16 +16,6 @@ type CampaignAuthPayload = Pick type CampaignCookiePayload = Pick export type AuthenticatedCampaignUser = CampaignUser & { email: string } -/** Gate reload fields — kept as documentation for future partial selects. */ -export const CAMPAIGN_AUTH_GATE_SELECT = { - id: true, - name: true, - role: true, - email: true, - username: true, - avatar: true, -} as const - type CampaignTokenClaims = Record & { collection: 'campaignUser' id: number | string @@ -150,10 +140,9 @@ export const getCampaignUserRaw = (): Promise export const getCampaignUser = cache(getCampaignUserRaw) -export const getCampaignUserWithAvatarRaw = (): Promise => - readAuthenticatedCampaignUser(1) - -export const getCampaignUserWithAvatar = cache(getCampaignUserWithAvatarRaw) +export const getCampaignUserWithAvatar = cache((): Promise => + readAuthenticatedCampaignUser(1), +) /** Public auth routes — session probe without reloading the user document. */ export const hasCampaignSession = cache(async (): Promise => {