Skip to content

Commit

Permalink
Merge pull request #49 from linagora/fix-deps
Browse files Browse the repository at this point in the history
Fix deps
  • Loading branch information
guimard authored Jun 11, 2024
2 parents bc348a8 + fe7fa06 commit b2aceba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"softClean": "rimraf packages/*/dist",
"test": "lerna run test"
},
"dependencies": {
"express": "^4.18.2",
"@remix-run/express": "^1.16.0"
},
"devDependencies": {
"@crowdsec/express-bouncer": "^0.1.0",
"@rollup/plugin-commonjs": "^25.0.7",
Expand Down Expand Up @@ -63,7 +67,6 @@
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-promise": "^6.1.1",
"express": "^4.18.2",
"husky": "^8.0.3",
"jest": "^29.5.0",
"js-nacl": "^1.4.0",
Expand All @@ -86,4 +89,4 @@
"ts-jest": "^29.1.0",
"typescript": "^4.9.5"
}
}
}
4 changes: 4 additions & 0 deletions packages/tom-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,11 @@ export default class TwakeServer {

private async _initServer(confDesc?: ConfigDescription): Promise<boolean> {
await this.idServer.ready
this.logger.debug('idServer initialized')
await this.matrixDb.ready
this.logger.debug('Connected to Matrix DB')
await initializeDb(this)
this.logger.debug('Main database initialized')

const vaultServer = new VaultServer(
this.idServer.db,
Expand Down Expand Up @@ -161,6 +164,7 @@ export default class TwakeServer {
await searchEngineApi.ready
this._openSearchClient = searchEngineApi.openSearchRepository
this.endpoints.use(searchEngineApi.router.routes)
this.logger.debug('OpenSearch initialized')
}

Object.keys(this.idServer.api.get).forEach((k) => {
Expand Down

0 comments on commit b2aceba

Please sign in to comment.