wallet-core: return correct status from processReserveBankStatus
This commit is contained in:
parent
0a3f9979b2
commit
3bf4ce7f13
@ -1731,9 +1731,15 @@ async function processReserveBankStatus(
|
||||
await tx.withdrawalGroups.put(r);
|
||||
});
|
||||
|
||||
return {
|
||||
status: BankStatusResultCode.Done,
|
||||
};
|
||||
if (status.transfer_done) {
|
||||
return {
|
||||
status: BankStatusResultCode.Done,
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
status: BankStatusResultCode.Waiting,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function internalCreateWithdrawalGroup(
|
||||
|
Loading…
Reference in New Issue
Block a user