Skip to content

Commit

Permalink
fix: Update Be Dependency and formatting (#1128)
Browse files Browse the repository at this point in the history
  • Loading branch information
praju-aot authored Jan 30, 2024
1 parent c5b2607 commit 2a81a3e
Show file tree
Hide file tree
Showing 9 changed files with 2,573 additions and 2,367 deletions.
1 change: 1 addition & 0 deletions dops/.puppeteerrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ const {join} = require('path');
module.exports = {
// Changes the cache location for Puppeteer.
cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
skipChromeHeadlessShellDownload: true,
};
3 changes: 3 additions & 0 deletions dops/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ COPY . ./
# Create and Assign permissions to npm folder
RUN mkdir /.npm && chmod 777 /.npm

ENV PUPPETEER_SKIP_CHROME_DOWNLOAD=true
ENV PUPPETEER_SKIP_CHROME_HEADLESS_SHELL_DOWNLOAD=true

# Install packages, build and keep only prod packages
RUN npm ci
RUN npm run build
Expand Down
3,450 changes: 1,795 additions & 1,655 deletions dops/package-lock.json

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions dops/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,41 +45,41 @@
"@automapper/core": "^8.8.1",
"@automapper/nestjs": "^8.8.1",
"@automapper/types": "^6.3.1",
"@aws-sdk/client-s3": "^3.496.0",
"@aws-sdk/lib-storage": "^3.496.0",
"@aws-sdk/s3-request-presigner": "^3.496.0",
"@aws-sdk/client-s3": "^3.502.0",
"@aws-sdk/lib-storage": "^3.502.0",
"@aws-sdk/s3-request-presigner": "^3.502.0",
"@nestjs/axios": "^3.0.1",
"@nestjs/cache-manager": "^2.2.0",
"@nestjs/cli": "^10.3.0",
"@nestjs/common": "^10.3.0",
"@nestjs/common": "^10.3.1",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.3.0",
"@nestjs/core": "^10.3.1",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-express": "^10.3.0",
"@nestjs/platform-express": "^10.3.1",
"@nestjs/schematics": "^10.1.0",
"@nestjs/swagger": "^7.2.0",
"@nestjs/testing": "^10.3.0",
"@nestjs/testing": "^10.3.1",
"@nestjs/typeorm": "^10.0.1",
"@types/response-time": "^2.3.8",
"cache-manager": "^5.4.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"dayjs": "^1.11.10",
"dotenv": "^16.3.2",
"dotenv": "^16.4.1",
"handlebars": "^4.7.8",
"helmet": "^7.1.0",
"jwks-rsa": "^3.1.0",
"mssql": "^10.0.2",
"nest-winston": "^1.9.4",
"nestjs-cls": "^4.0.1",
"nestjs-cls": "^4.0.2",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"pdf-lib": "^1.17.1",
"puppeteer": "^21.7.0",
"puppeteer": "^21.10.0",
"response-time": "^2.3.2",
"rxjs": "^7.8.1",
"swagger-ui-express": "^5.0.0",
"typeorm": "^0.3.19",
"typeorm": "^0.3.20",
"uuid": "^9.0.1",
"winston": "^3.11.0"
},
Expand All @@ -88,12 +88,12 @@
"@types/express": "^4.17.21",
"@types/jest": "^29.5.11",
"@types/multer": "^1.4.11",
"@types/node": "^20.11.0",
"@types/passport-jwt": "^4.0.0",
"@types/node": "^20.11.10",
"@types/passport-jwt": "^4.0.1",
"@types/supertest": "^6.0.2",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^6.19.1",
"@typescript-eslint/parser": "^6.19.1",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
15 changes: 9 additions & 6 deletions dops/src/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,16 @@ export class AuthService {
@LogAsyncMethodExecution()
async getCompaniesForUser(accessToken: string): Promise<AxiosResponse> {
return lastValueFrom(
this.httpService.get(process.env.ACCESS_API_URL + '/companies/meta-data', {
headers: {
Authorization: accessToken,
'Content-Type': 'application/json',
'x-correlation-id': this.cls.getId(),
this.httpService.get(
process.env.ACCESS_API_URL + '/companies/meta-data',
{
headers: {
Authorization: accessToken,
'Content-Type': 'application/json',
'x-correlation-id': this.cls.getId(),
},
},
}),
),
);
}
}
Loading

0 comments on commit 2a81a3e

Please sign in to comment.