fixes tests.

This commit is contained in:
Bryce
2025-08-07 21:34:44 -07:00
parent c52e9d872a
commit 2268d4538b
4 changed files with 21 additions and 27 deletions

View File

@@ -115,11 +115,12 @@ def sync_folder_emails(folder_id):
# Get IMAP service to fetch email UIDs
imap_service = IMAPService(current_user)
print(imap_service)
# Get all email UIDs in the folder
email_uids = imap_service.get_folder_email_uids(folder.name)
if not email_uids:
return jsonify({'error': 'No emails found in folder'}), 404
return jsonify({'error': 'No emails found in folder'}), 200
# Get processed emails service
processed_emails_service = ProcessedEmailsService(current_user)