fix(refactor): continue to revert to past implementation. now use a job instead of calling deliver_later(wait: 5.minutes) [was not a satisfying implementation]

This commit is contained in:
Martin 2021-11-15 15:45:48 +01:00
parent 5534c3fbd6
commit ddabed0c7e

View file

@ -112,8 +112,8 @@ class Commentaire < ApplicationRecord
NotifyNewAnswerWithDelayJob.set(wait: 5.minutes).perform_later(dossier, body, self)
end
def notify_user_with
DossierMailer.notify_with_delay_new_commentaire_to_user(dossier, body, self).deliver_later
def notify_user
DossierMailer.notify_new_answer(dossier, body).deliver_later
end
def messagerie_available?