diff --git a/packages/api/src/resolvers/api_key/index.ts b/packages/api/src/resolvers/api_key/index.ts index 2188d1ea0..4ca0d4c3e 100644 --- a/packages/api/src/resolvers/api_key/index.ts +++ b/packages/api/src/resolvers/api_key/index.ts @@ -17,7 +17,7 @@ import { getRepository } from '../../repository' import { findApiKeys } from '../../services/api_key' import { analytics } from '../../utils/analytics' import { generateApiKey, hashApiKey } from '../../utils/auth' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const apiKeysResolver = authorized( async (_, __, { log, uid }) => { diff --git a/packages/api/src/resolvers/features/index.ts b/packages/api/src/resolvers/features/index.ts index 73f9036b0..6f92d922c 100644 --- a/packages/api/src/resolvers/features/index.ts +++ b/packages/api/src/resolvers/features/index.ts @@ -9,7 +9,7 @@ import { optInFeature, signFeatureToken, } from '../../services/features' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const optInFeatureResolver = authorized< OptInFeatureSuccess, diff --git a/packages/api/src/resolvers/filters/index.ts b/packages/api/src/resolvers/filters/index.ts index f1c743afd..b31760f7e 100644 --- a/packages/api/src/resolvers/filters/index.ts +++ b/packages/api/src/resolvers/filters/index.ts @@ -25,7 +25,7 @@ import { } from '../../generated/graphql' import { authTrx } from '../../repository' import { analytics } from '../../utils/analytics' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const saveFilterResolver = authorized< SaveFilterSuccess, diff --git a/packages/api/src/resolvers/importers/uploadImportFileResolver.ts b/packages/api/src/resolvers/importers/uploadImportFileResolver.ts index f9dccfa37..fdb39e7d9 100644 --- a/packages/api/src/resolvers/importers/uploadImportFileResolver.ts +++ b/packages/api/src/resolvers/importers/uploadImportFileResolver.ts @@ -9,7 +9,7 @@ import { } from '../../generated/graphql' import { userRepository } from '../../repository/user' import { analytics } from '../../utils/analytics' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' import { logger } from '../../utils/logger' import { countOfFilesWithPrefix, diff --git a/packages/api/src/resolvers/integrations/index.ts b/packages/api/src/resolvers/integrations/index.ts index dc2d0c4b5..0a849c5f0 100644 --- a/packages/api/src/resolvers/integrations/index.ts +++ b/packages/api/src/resolvers/integrations/index.ts @@ -37,7 +37,7 @@ import { enqueueExportToIntegration, enqueueImportFromIntegration, } from '../../utils/createTask' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const setIntegrationResolver = authorized< SetIntegrationSuccess, diff --git a/packages/api/src/resolvers/labels/index.ts b/packages/api/src/resolvers/labels/index.ts index 5e6e77c5a..6a6860940 100644 --- a/packages/api/src/resolvers/labels/index.ts +++ b/packages/api/src/resolvers/labels/index.ts @@ -37,7 +37,7 @@ import { updateLabel, } from '../../services/labels' import { analytics } from '../../utils/analytics' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const labelsResolver = authorized( async (_obj, _params, { authTrx, log, uid }) => { diff --git a/packages/api/src/resolvers/links/index.ts b/packages/api/src/resolvers/links/index.ts index 8950222d1..657866d0c 100644 --- a/packages/api/src/resolvers/links/index.ts +++ b/packages/api/src/resolvers/links/index.ts @@ -8,7 +8,7 @@ import { } from '../../generated/graphql' import { updateLibraryItem } from '../../services/library_item' import { analytics } from '../../utils/analytics' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' // export const updateLinkShareInfoResolver = authorized< // UpdateLinkShareInfoSuccess, diff --git a/packages/api/src/resolvers/newsletters/index.ts b/packages/api/src/resolvers/newsletters/index.ts index a7fc5a447..0415041eb 100644 --- a/packages/api/src/resolvers/newsletters/index.ts +++ b/packages/api/src/resolvers/newsletters/index.ts @@ -30,7 +30,7 @@ import { import { unsubscribeAll } from '../../services/subscriptions' import { Merge } from '../../util' import { analytics } from '../../utils/analytics' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export type CreateNewsletterEmailSuccessPartial = Merge< CreateNewsletterEmailSuccess, diff --git a/packages/api/src/resolvers/popular_reads/index.ts b/packages/api/src/resolvers/popular_reads/index.ts index 30e1de08c..4e8773c55 100644 --- a/packages/api/src/resolvers/popular_reads/index.ts +++ b/packages/api/src/resolvers/popular_reads/index.ts @@ -5,7 +5,7 @@ import { MutationAddPopularReadArgs, } from '../../generated/graphql' import { addPopularRead } from '../../services/popular_reads' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const addPopularReadResolver = authorized< AddPopularReadSuccess, AddPopularReadError, diff --git a/packages/api/src/resolvers/recent_emails/index.ts b/packages/api/src/resolvers/recent_emails/index.ts index 8b91143d0..a4b86a929 100644 --- a/packages/api/src/resolvers/recent_emails/index.ts +++ b/packages/api/src/resolvers/recent_emails/index.ts @@ -13,7 +13,7 @@ import { } from '../../generated/graphql' import { updateReceivedEmail } from '../../services/received_emails' import { saveNewsletter } from '../../services/save_newsletter_email' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' import { generateUniqueUrl, parseEmailAddress } from '../../utils/parser' import { sendEmail } from '../../utils/sendEmail' diff --git a/packages/api/src/resolvers/recent_searches/index.ts b/packages/api/src/resolvers/recent_searches/index.ts index 952e97fd1..1f6faff6e 100644 --- a/packages/api/src/resolvers/recent_searches/index.ts +++ b/packages/api/src/resolvers/recent_searches/index.ts @@ -3,7 +3,7 @@ import { RecentSearchesSuccess, } from '../../generated/graphql' import { getRecentSearches } from '../../services/search_history' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const recentSearchesResolver = authorized< RecentSearchesSuccess, diff --git a/packages/api/src/resolvers/rules/index.ts b/packages/api/src/resolvers/rules/index.ts index 3ab1a9031..49f9c7537 100644 --- a/packages/api/src/resolvers/rules/index.ts +++ b/packages/api/src/resolvers/rules/index.ts @@ -14,7 +14,7 @@ import { SetRuleSuccess, } from '../../generated/graphql' import { deleteRule } from '../../services/rules' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const setRuleResolver = authorized< SetRuleSuccess, diff --git a/packages/api/src/resolvers/save/index.ts b/packages/api/src/resolvers/save/index.ts index f5508663d..5c22c86d1 100644 --- a/packages/api/src/resolvers/save/index.ts +++ b/packages/api/src/resolvers/save/index.ts @@ -12,7 +12,7 @@ import { saveFile } from '../../services/save_file' import { savePage } from '../../services/save_page' import { saveUrl } from '../../services/save_url' import { analytics } from '../../utils/analytics' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const savePageResolver = authorized< SaveSuccess, diff --git a/packages/api/src/resolvers/send_install_instructions/index.ts b/packages/api/src/resolvers/send_install_instructions/index.ts index 62d134fbc..8bcc1a9c7 100644 --- a/packages/api/src/resolvers/send_install_instructions/index.ts +++ b/packages/api/src/resolvers/send_install_instructions/index.ts @@ -5,7 +5,7 @@ import { SendInstallInstructionsSuccess, } from '../../generated/graphql' import { userRepository } from '../../repository/user' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' import { sendEmail } from '../../utils/sendEmail' const INSTALL_INSTRUCTIONS_EMAIL_TEMPLATE_ID = diff --git a/packages/api/src/resolvers/user_device_tokens/index.ts b/packages/api/src/resolvers/user_device_tokens/index.ts index 661762f48..8fcc4d868 100644 --- a/packages/api/src/resolvers/user_device_tokens/index.ts +++ b/packages/api/src/resolvers/user_device_tokens/index.ts @@ -20,7 +20,7 @@ import { findDeviceTokensByUserId, } from '../../services/user_device_tokens' import { analytics } from '../../utils/analytics' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' const PG_UNIQUE_CONSTRAINT_VIOLATION = '23505' diff --git a/packages/api/src/resolvers/user_personalization/index.ts b/packages/api/src/resolvers/user_personalization/index.ts index e9bb00a89..e696f7160 100644 --- a/packages/api/src/resolvers/user_personalization/index.ts +++ b/packages/api/src/resolvers/user_personalization/index.ts @@ -8,7 +8,7 @@ import { SetUserPersonalizationSuccess, SortOrder, } from '../../generated/graphql' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const setUserPersonalizationResolver = authorized< SetUserPersonalizationSuccess, diff --git a/packages/api/src/resolvers/webhooks/index.ts b/packages/api/src/resolvers/webhooks/index.ts index 606debe1e..a164797f3 100644 --- a/packages/api/src/resolvers/webhooks/index.ts +++ b/packages/api/src/resolvers/webhooks/index.ts @@ -22,7 +22,7 @@ import { import { authTrx } from '../../repository' import { deleteWebhook } from '../../services/webhook' import { analytics } from '../../utils/analytics' -import { authorized } from '../../utils/helpers' +import { authorized } from '../../utils/gql-utils' export const webhooksResolver = authorized( async (_obj, _params, { uid, log }) => {