chore: update code comments
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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: {} };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user