Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize auth with database
Browse files Browse the repository at this point in the history
PR-URL: metarhia#55
tshemsedinov authored and MarhiievHE committed Apr 24, 2022
1 parent e7d1dc5 commit b028ee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/domain/database/start.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
(async () => {
console.debug('Connect to pg');
const options = { ...config.database, logger: console };
domain.db = new npm.metasql.Database(options);
const database = new npm.metasql.Database(options);
domain.db = database;
application.auth.init(database);
});

0 comments on commit b028ee3

Please sign in to comment.