fix: Terminate IMAP connection after the job is complete (#9225)

This commit is contained in:
Pranav
2024-04-11 15:47:43 -07:00
committed by GitHub
parent 0477b8ca14
commit e8fe3c7c05
5 changed files with 21 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
class Imap::MicrosoftFetchEmailService < Imap::BaseFetchEmailService
def perform
def fetch_emails
return if channel.provider_config['access_token'].blank?
fetch_mail_for_channel