From ea79ae5fdb7f7385b89a1823f69e2222b17a03f8 Mon Sep 17 00:00:00 2001 From: NguyenND Date: Mon, 1 Jun 2026 17:49:07 -0400 Subject: [PATCH] 06/01 Fix mapped accounts last sync time --- app/services/teller_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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