From 2bdf2bc094aa105ac4f70fff40ed9d08c551635e Mon Sep 17 00:00:00 2001 From: Don Nguyen Date: Mon, 16 Oct 2023 15:31:45 +0700 Subject: [PATCH] [f] Use correct DATABASE when trying to register new Platform --- src/Provider/Provider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider/Provider.js b/src/Provider/Provider.js index c792838..7e2ae04 100644 --- a/src/Provider/Provider.js +++ b/src/Provider/Provider.js @@ -828,7 +828,7 @@ class Provider { try { kid = await Auth.generatePlatformKeyPair(_ENCRYPTIONKEY, _Database, platform.url, platform.clientId) - const plat = new Platform(platform.name, platform.url, platform.clientId, platform.authenticationEndpoint, platform.accesstokenEndpoint, platform.authorizationServer, kid, _ENCRYPTIONKEY, platform.authConfig, this.Database) + const plat = new Platform(platform.name, platform.url, platform.clientId, platform.authenticationEndpoint, platform.accesstokenEndpoint, platform.authorizationServer, kid, _ENCRYPTIONKEY, platform.authConfig, _DATABASE) // Save platform to db provMainDebug('Registering new platform')