Skip to content

Commit

Permalink
Use scanner db by default for sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Dec 9, 2020
1 parent 92a87ae commit d429372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/session-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = require('../services/config.js');
const MySQLConnector = require('../services/mysql.js');

const { scanner, manualdb } = config.db;
const dbSelection = scanner.useFor.includes('session') ? scanner : manualdb;
const dbSelection = manualdb.useFor.includes('session') ? manualdb : scanner;
const db = new MySQLConnector(dbSelection);

// MySQL session store
Expand Down

0 comments on commit d429372

Please sign in to comment.