diff --git a/app/Jobs/MessageProcess.php b/app/Jobs/MessageProcess.php index 37342cc..66bfeb9 100644 --- a/app/Jobs/MessageProcess.php +++ b/app/Jobs/MessageProcess.php @@ -228,8 +228,8 @@ class MessageProcess implements ShouldQueue if ($this->mo->msgid) { $o = Echomail::where('msgid',$this->mo->msgid) ->where('fftn_id',$this->mo->fftn->id) - ->where('datetime','>=',$this->mo->date->subYears(3)) - ->where('datetime','<=',$this->mo->date) + ->where('datetime','>=',$this->mo->datetime->subYears(3)) + ->where('datetime','<=',$this->mo->datetime) ->single(); Log::debug(sprintf('%s:- Checking for duplicate from host id [%d].',self::LOGKEY,$this->mo->fftn->id));