various fixes

This commit is contained in:
janis
2023-08-28 17:09:56 +02:00
parent a0984782a8
commit 466a4fbd8b
9 changed files with 54 additions and 11 deletions

View File

@@ -8,9 +8,11 @@
*/
const db = require( '../../backend/db/db.js' );
const pm = require( '../../backend/plugins/manager.js' );
class GETHandler {
constructor ( settings ) {
this.pluginManager = new pm( settings );
this.settings = settings;
}
@@ -91,7 +93,7 @@ class GETHandler {
reject( { 'code': 500, 'message': 'ERR_DB: ' + err } );
} );
} else if ( call === 'getPaymentGatewaySettings' ) {
// TODO: Finish with plugin manager
pluginManager.loadPaymentGatewaySettings();
} else if ( call === 'getSettings' ) {
resolve( this.settings );
} else {

View File

@@ -10,11 +10,13 @@
const db = require( '../../backend/db/db.js' );
const fs = require( 'fs' );
const path = require( 'path' );
const pm = require( '../../backend/plugins/manager.js' );
const letters = [ ',', '{' ];
class POSTHandler {
constructor ( settings ) {
this.pluginManager = new pm( settings );
this.settings = settings;
}