Skip to content

Commit

Permalink
Initialize auth with database
Browse files Browse the repository at this point in the history
PR-URL: metarhia#55
  • Loading branch information
tshemsedinov committed Nov 6, 2020
1 parent 23fbb3e commit a401842
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 a401842

Please sign in to comment.