From 3c8e56e23082d633ff4ed56ee4cea10a06e932f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Mon, 28 Dec 2020 00:53:14 +0100 Subject: [PATCH] sauvegarde du mail dans Elasticsearch --- app/mailboxes/in_mailbox.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/mailboxes/in_mailbox.rb b/app/mailboxes/in_mailbox.rb index 2e0fff9..dcb75e8 100644 --- a/app/mailboxes/in_mailbox.rb +++ b/app/mailboxes/in_mailbox.rb @@ -17,7 +17,8 @@ class InMailbox < ApplicationMailbox tickets: tickets(mail) ) - binding.pry + repository = EmailRepository.new + repository.save(email) rescue => ex binding.pry end