maestro refacto to grrom, getpositions actions transfered to Observer, changed to frustum, with subscription

This commit is contained in:
STEINNI
2026-06-14 10:16:56 +00:00
parent f3102d5fbc
commit c399f9ddb4
21 changed files with 760 additions and 185 deletions
+4 -2
View File
@@ -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,