wallet-core: return correct status from processReserveBankStatus

This commit is contained in:
Florian Dold 2022-09-30 13:22:00 +02:00
parent 0a3f9979b2
commit 3bf4ce7f13
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -1731,9 +1731,15 @@ async function processReserveBankStatus(
await tx.withdrawalGroups.put(r);
});
if (status.transfer_done) {
return {
status: BankStatusResultCode.Done,
};
} else {
return {
status: BankStatusResultCode.Waiting,
};
}
}
export async function internalCreateWithdrawalGroup(