do not throw exception when receiving zero-length refund list
This commit is contained in:
parent
27e42111e7
commit
e435f5b431
@ -1063,11 +1063,6 @@ async function acceptRefundResponse(
|
||||
): Promise<void> {
|
||||
const refundPermissions = refundResponse.refund_permissions;
|
||||
|
||||
if (!refundPermissions.length) {
|
||||
console.warn("got empty refund list");
|
||||
throw Error("empty refund");
|
||||
}
|
||||
|
||||
let numNewRefunds = 0;
|
||||
|
||||
await runWithWriteTransaction(ws.db, [Stores.purchases], async tx => {
|
||||
|
Loading…
Reference in New Issue
Block a user