Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #152 from openkfw/fix-api
Browse files Browse the repository at this point in the history
fixed api when using appinsights
  • Loading branch information
MartinJurcoGlina authored Aug 18, 2022
2 parents 82f69c6 + 6d4518d commit 6e678c6
Show file tree
Hide file tree
Showing 3 changed files with 251 additions and 106 deletions.
5 changes: 4 additions & 1 deletion api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import appInsights from 'applicationinsights';
/* eslint import/first: 0 */
// eslint-disable-next-line
const appInsights = require('applicationinsights');

import config from './src/config/config';
import logger from './src/config/winston';
import { initializeDb } from './src/database';
Expand Down
2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "GPL-3.0-or-later",
"dependencies": {
"@hapi/joi": "^17.1.1",
"applicationinsights": "^1.8.10",
"applicationinsights": "^2.3.4",
"azure-storage": "^2.10.1",
"body-parser": "^1.18.3",
"compression": "^1.7.3",
Expand Down
Loading

0 comments on commit 6e678c6

Please sign in to comment.