Skip to content

Commit

Permalink
fix: ignore permissions when saving payouts
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchez authored Feb 3, 2021
1 parent d21de96 commit ade17ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shopify_integration/payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def create_shopify_payout(payout):
try:
payout_transactions = settings.get_payout_transactions(payout_id=payout.id)
except Exception as e:
payout_doc.save()
payout_doc.save(ignore_permissions=True)
make_shopify_log(status="Payout Transactions Error", response_data=payout.to_dict(), exception=e)
return payout_doc

Expand Down Expand Up @@ -194,6 +194,6 @@ def create_shopify_payout(payout):
"source_order_transaction_id": transaction.source_order_transaction_id,
})

payout_doc.save()
payout_doc.save(ignore_permissions=True)
frappe.db.commit()
return payout_doc

0 comments on commit ade17ca

Please sign in to comment.