Skip to content

Commit

Permalink
fix: apply travelperk sync fix to all existing accounts
Browse files Browse the repository at this point in the history
(cherry picked from commit ba9d32c)
  • Loading branch information
JustARatherRidiculouslyLongUsername committed Oct 24, 2024
1 parent 624d9f3 commit bdb2a27
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/python/sync_all_travelperk_accounts.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from apps.travelperk.models import TravelperkCredential
from apps.travelperk.serializers import SyncPaymentProfileSerializer


all_creds = TravelperkCredential.objects.all()

for creds in all_creds:
SyncPaymentProfileSerializer().sync_payment_profiles(creds.org_id)

0 comments on commit bdb2a27

Please sign in to comment.