maestro refacto to grrom, getpositions actions transfered to Observer, changed to frustum, with subscription
This commit is contained in:
+4
-2
@@ -1,10 +1,12 @@
|
||||
import mysql from 'mysql2/promise'
|
||||
import { loadP42Secrets } from './secretsLoader.js'
|
||||
|
||||
export function resolveMysqlCredentials(config = {}) {
|
||||
const user = process.env.user
|
||||
loadP42Secrets()
|
||||
const user = process.env.mysql_user
|
||||
const password = process.env.mysql_pass
|
||||
if(!user || !password) {
|
||||
throw new Error('Missing MySQL credentials: set user and mysql_pass in environment')
|
||||
throw new Error('Missing MySQL credentials: set mysql_user and mysql_pass in environment')
|
||||
}
|
||||
return({
|
||||
socketPath: config.socketPath,
|
||||
|
||||
Reference in New Issue
Block a user