fix: sync_account must return SyncRun not last IMAP message
Fixes 500 on POST /accounts/{id}/sync when clicking play in admin UI.
This commit is contained in:
1 parent
31d32ed1b4
commit
e31a1b4a7a
1 file changed
+1
-1
@@ -366,7 +366,7 @@ def sync_account(
|
||||
db.commit()
|
||||
db.refresh(sync_run)
|
||||
|
||||
return msg
|
||||
return sync_run
|
||||
|
||||
|
||||
def _mark_missing_from_mailbox(db: Session, message: Message, reason: str) -> Message:
|
||||
|
||||
Reference in new issue
Block a user