message with tenant id
MODIFY
src/utils/Cypher.ts
src/utils/Cypher.ts
@@ -137,12 +137,11 @@ export default class Cypher {
private static async getCryptoSetting(tenantID: string): Promise<CryptoSetting> {
const cryptoSettings = (await SettingStorage.getCryptoSettings(tenantID)).crypto;
if (!cryptoSettings) {
- const tenantName = (await TenantStorage.getTenant(tenantID)).name;
throw new BackendError({
source: Constants.CENTRAL_SERVER,
module: MODULE_NAME,
method: 'getCryptoSetting',
- message: `Tenant ${tenantName} (tenandID: ${tenantID}) does not have crypto settings.`
+ message: `Tenant with ID: ${tenantID}) does not have crypto settings.`
});
}
return cryptoSettings;

message with tenant id