Skip to content

Commit

Permalink
Update graph database usage (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 authored Nov 10, 2022
1 parent 311b2a8 commit b5770fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/uni-info-watcher/src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class Database implements DatabaseInterface {
};

this._baseDatabase = new BaseDatabase(this._config);
this._graphDatabase = new GraphDatabase(this._config, entitiesDir, ENTITY_QUERY_TYPE_MAP);
this._graphDatabase = new GraphDatabase(this.baseDatabase, ENTITY_QUERY_TYPE_MAP);
this._relationsMap = new Map();
this._populateRelationsMap();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-info-watcher/src/job-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const main = async (): Promise<any> => {

assert(config.server, 'Missing server config');

const { upstream, database: dbConfig, jobQueue: jobQueueConfig, server: { mode }, metrics } = config;
const { upstream, database: dbConfig, jobQueue: jobQueueConfig, server: { mode } } = config;

assert(dbConfig, 'Missing database config');

Expand Down
2 changes: 1 addition & 1 deletion packages/uni-info-watcher/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const main = async (): Promise<any> => {

assert(config.server, 'Missing server config');

const { host, port, mode, maxSimultaneousRequests, maxRequestQueueLimit } = config.server;
const { host, port, maxSimultaneousRequests, maxRequestQueueLimit } = config.server;

const { upstream, database: dbConfig, jobQueue: jobQueueConfig } = config;

Expand Down

0 comments on commit b5770fb

Please sign in to comment.