From fc7817780d1edcc56bc42a7d6a2a5cbc4ddc90c7 Mon Sep 17 00:00:00 2001 From: Mir Arif Hasan Date: Fri, 8 Dec 2023 17:33:15 +0600 Subject: [PATCH] chore: update code comments --- packages/hoppscotch-backend/src/auth/helper.ts | 1 - packages/hoppscotch-backend/src/infra-config/helper.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/hoppscotch-backend/src/auth/helper.ts b/packages/hoppscotch-backend/src/auth/helper.ts index e0ff76fe2..339d7edca 100644 --- a/packages/hoppscotch-backend/src/auth/helper.ts +++ b/packages/hoppscotch-backend/src/auth/helper.ts @@ -7,7 +7,6 @@ import * as cookie from 'cookie'; import { AUTH_PROVIDER_NOT_SPECIFIED, COOKIES_NOT_FOUND } from 'src/errors'; import { throwErr } from 'src/utils'; import { ConfigService } from '@nestjs/config'; -import { loadInfraConfiguration } from 'src/infra-config/helper'; enum AuthTokenType { ACCESS_TOKEN = 'access_token', diff --git a/packages/hoppscotch-backend/src/infra-config/helper.ts b/packages/hoppscotch-backend/src/infra-config/helper.ts index 66ff9910e..f01bae6ba 100644 --- a/packages/hoppscotch-backend/src/infra-config/helper.ts +++ b/packages/hoppscotch-backend/src/infra-config/helper.ts @@ -25,7 +25,7 @@ export async function loadInfraConfiguration() { return { INFRA: environmentObject }; } catch (error) { // Prisma throw error if 'Can't reach at database server' OR 'Table does not exist' - // We're not throwing error here because we want to allow the app to run 'pnpm install' + // Reason for not throwing error is, we want successful build during 'postinstall' and generate dist files return { INFRA: {} }; } }