diff --git a/app/services/teller_service.py b/app/services/teller_service.py index 7477207..1a0782a 100644 --- a/app/services/teller_service.py +++ b/app/services/teller_service.py @@ -308,9 +308,11 @@ def import_transactions(parsed_txns, teller_account): db.session.commit() - # Update sync metadata + # Update sync metadata on both the account and its parent enrollment from datetime import datetime + now = datetime.utcnow() teller_account.last_sync_date = date.today() + teller_account.enrollment.last_synced_at = now if parsed_txns: teller_account.last_teller_txn_id = parsed_txns[0]['teller_id'] from app.extensions import db as _db