checking if env is local to disable ssl

This commit is contained in:
Gabriel Rosa
2022-08-23 09:01:17 -03:00
parent 09e3b3fd33
commit 3bfcc7a412
7 changed files with 25 additions and 7 deletions
@@ -57,7 +57,7 @@ export class PermissionsService
}).catch((err: ErrorBuilder) => {
if (
err.code === 'No connection established' &&
process.env.LOCAL_ENV === 'true'
(process.env.LOCAL_ENV === 'true' || process.env.ENV === 'local')
) {
return this.logger.info(
"couldn't connect to DUC. suppresing in local env",