diff options
author | Antoine A <> | 2024-01-25 10:35:08 +0100 |
---|---|---|
committer | Antoine A <> | 2024-01-25 10:35:08 +0100 |
commit | 3975f316c5c1b2010a3dd0047225091f0919a660 (patch) | |
tree | 2d09aac274db4112df6e86fd1ca6204d473db2f0 | |
parent | ba418b5d6718596fd1b07611f1e1764c797f1e12 (diff) | |
download | libeufin-3975f316c5c1b2010a3dd0047225091f0919a660.tar.gz libeufin-3975f316c5c1b2010a3dd0047225091f0919a660.tar.bz2 libeufin-3975f316c5c1b2010a3dd0047225091f0919a660.zip |
Fix PDF generationv0.9.4-dev.7
-rw-r--r-- | nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt index f23b3a33..b13124e3 100644 --- a/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt +++ b/nexus/src/main/kotlin/tech/libeufin/nexus/EbicsSetup.kt @@ -237,15 +237,15 @@ class EbicsSetup: CliktCommand("Set up the EBICS subscriber") { val clientKeys = loadOrGenerateClientKeys(cfg.clientPrivateKeysFilename) val httpClient = HttpClient() // Privs exist. Upload their pubs - val keysNotSub = !clientKeys.submitted_ini || !clientKeys.submitted_hia runBlocking { + val keysNotSub = !clientKeys.submitted_ini if ((!clientKeys.submitted_ini) || forceKeysResubmission) doKeysRequestAndUpdateState(cfg, clientKeys, httpClient, KeysOrderType.INI) + // Eject PDF if the keys were submitted for the first time, or the user asked. + if (keysNotSub || generateRegistrationPdf) makePdf(clientKeys, cfg) if ((!clientKeys.submitted_hia) || forceKeysResubmission) doKeysRequestAndUpdateState(cfg, clientKeys, httpClient, KeysOrderType.HIA) } - // Eject PDF if the keys were submitted for the first time, or the user asked. - if (keysNotSub || generateRegistrationPdf) makePdf(clientKeys, cfg) // Checking if the bank keys exist on disk. var bankKeys = loadBankKeys(cfg.bankPublicKeysFilename) if (bankKeys == null) { |