diff options
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/taler-wallet-core/src/operations/pay-merchant.ts | 18 | 
1 files changed, 12 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index baf520c5b..70ca0981f 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -891,12 +891,18 @@ async function unblockBackup(        await tx.backupProviders.indexes.byPaymentProposalId          .iter(proposalId)          .forEachAsync(async (bp) => { -          if (bp.state.tag === BackupProviderStateTag.Retrying) { -            bp.state = { -              tag: BackupProviderStateTag.Ready, -              nextBackupTimestamp: TalerProtocolTimestamp.now(), -            }; -          } +          // if (bp.state.tag === BackupProviderStateTag.Retrying) { +          bp.state = { +            tag: BackupProviderStateTag.Ready, +            nextBackupTimestamp: AbsoluteTime.toTimestamp( +              AbsoluteTime.addDuration( +                AbsoluteTime.now(), +                Duration.fromSpec({ days: 7 }), +              ), +            ), +          }; +          // } +          tx.backupProviders.put(bp);          });      });  }  | 
