Fix accidental reference to old style transferwise API
authorMagnus Hagander <magnus@hagander.net>
Fri, 13 Jun 2025 09:01:33 +0000 (11:01 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 13 Jun 2025 09:01:33 +0000 (11:01 +0200)
Clearly missed one field in the update, that was still referencing the
old API structure.

postgresqleu/transferwise/management/commands/transferwise_fetch_transactions.py

index 7856ed85db6e391b45f4f411e4ac06fd315a0c67..6b0fa2ad3112886b653a33464ab270fc20d0689e 100644 (file)
@@ -60,7 +60,7 @@ class Command(BaseCommand):
                     'datetime': api.parse_datetime(t['datetime']),
                     'amount': t['amount'],
                     'feeamount': t['feeamount'],
-                    'transtype': t['details']['type'],
+                    'transtype': t['transtype'],
                     'paymentref': t['paymentref'][:200],
                     'fulldescription': t['fulldescription'],
                 }