Merge pull request #8978 from colinux/refactor-dolist-module

Tech: ne mélange pas class & module Dolist, supprime adapter SMTP
This commit is contained in:
Colin Darie 2023-04-27 09:52:42 +00:00 committed by GitHub
commit b0f4c578a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 298 additions and 320 deletions

View file

@ -21,7 +21,7 @@ class EmailEvent < ApplicationRecord
}
scope :dolist, -> { dolist_smtp.or(dolist_api) }
scope :dolist_smtp, -> { where(method: 'dolist_smtp') }
scope :dolist_smtp, -> { where(method: 'dolist_smtp') } # legacy method: removable after 2023-06
scope :dolist_api, -> { where(method: 'dolist_api') }
scope :sendinblue, -> { where(method: 'sendinblue') }
scope :outdated, -> { where("created_at < ?", RETENTION_DURATION.ago) }