fix section comparison
This commit is contained in:
parent
09b07d6147
commit
cd15937dad
@ -541,7 +541,7 @@ export class Configuration {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get lower-cased section names.
|
* Get upper-cased section names.
|
||||||
*/
|
*/
|
||||||
getSectionNames(): string[] {
|
getSectionNames(): string[] {
|
||||||
return Object.keys(this.sectionMap).map((x) => x.toUpperCase());
|
return Object.keys(this.sectionMap).map((x) => x.toUpperCase());
|
||||||
|
@ -924,11 +924,6 @@ export class ExchangeService implements ExchangeServiceInterface {
|
|||||||
);
|
);
|
||||||
config.setString(`exchange-account-${localName}`, "enable_credit", "yes");
|
config.setString(`exchange-account-${localName}`, "enable_credit", "yes");
|
||||||
config.setString(`exchange-account-${localName}`, "enable_debit", "yes");
|
config.setString(`exchange-account-${localName}`, "enable_debit", "yes");
|
||||||
config.setString(
|
|
||||||
`exchange-accountcredentials-${localName}`,
|
|
||||||
"payto_uri",
|
|
||||||
exchangeBankAccount.accountPaytoUri,
|
|
||||||
);
|
|
||||||
config.setString(
|
config.setString(
|
||||||
`exchange-accountcredentials-${localName}`,
|
`exchange-accountcredentials-${localName}`,
|
||||||
"wire_gateway_url",
|
"wire_gateway_url",
|
||||||
@ -1021,7 +1016,7 @@ export class ExchangeService implements ExchangeServiceInterface {
|
|||||||
|
|
||||||
const config = Configuration.load(this.configFilename);
|
const config = Configuration.load(this.configFilename);
|
||||||
for (const sectionName of config.getSectionNames()) {
|
for (const sectionName of config.getSectionNames()) {
|
||||||
if (sectionName.startsWith("exchange-account")) {
|
if (sectionName.startsWith("EXCHANGE_ACCOUNT")) {
|
||||||
const paytoUri = config.getString(sectionName, "payto_uri").required();
|
const paytoUri = config.getString(sectionName, "payto_uri").required();
|
||||||
const p = parsePaytoUri(paytoUri);
|
const p = parsePaytoUri(paytoUri);
|
||||||
if (!p) {
|
if (!p) {
|
||||||
|
Loading…
Reference in New Issue
Block a user