chore: update code comments

This commit is contained in:
Mir Arif Hasan
2023-12-08 17:33:15 +06:00
parent 0f7aa5e84d
commit fc7817780d
2 changed files with 1 additions and 2 deletions

View File

@@ -7,7 +7,6 @@ import * as cookie from 'cookie';
import { AUTH_PROVIDER_NOT_SPECIFIED, COOKIES_NOT_FOUND } from 'src/errors'; import { AUTH_PROVIDER_NOT_SPECIFIED, COOKIES_NOT_FOUND } from 'src/errors';
import { throwErr } from 'src/utils'; import { throwErr } from 'src/utils';
import { ConfigService } from '@nestjs/config'; import { ConfigService } from '@nestjs/config';
import { loadInfraConfiguration } from 'src/infra-config/helper';
enum AuthTokenType { enum AuthTokenType {
ACCESS_TOKEN = 'access_token', ACCESS_TOKEN = 'access_token',

View File

@@ -25,7 +25,7 @@ export async function loadInfraConfiguration() {
return { INFRA: environmentObject }; return { INFRA: environmentObject };
} catch (error) { } catch (error) {
// Prisma throw error if 'Can't reach at database server' OR 'Table does not exist' // 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: {} }; return { INFRA: {} };
} }
} }