chore: Use ES modules for backend app
This commit is contained in:
@@ -47,7 +47,7 @@ class AppAuthClient extends Base {
|
||||
if (!this.eligibleForDecryption()) return;
|
||||
|
||||
this.formattedAuthDefaults = JSON.parse(
|
||||
AES.decrypt(this.authDefaults, appConfig.encryptionKey).toString(enc.Utf8)
|
||||
AES.decrypt(this.authDefaults, appConfig.encryptionKey).toString(enc)
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import Base from './base';
|
||||
import Base from './base.js';
|
||||
|
||||
class Config extends Base {
|
||||
static tableName = 'config';
|
||||
|
@@ -109,7 +109,7 @@ class Connection extends Base {
|
||||
if (!this.eligibleForDecryption()) return;
|
||||
|
||||
this.formattedData = JSON.parse(
|
||||
AES.decrypt(this.data, appConfig.encryptionKey).toString(enc.Utf8)
|
||||
AES.decrypt(this.data, appConfig.encryptionKey).toString(enc)
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user