diff --git a/app/Models/Evaluation.php b/app/Models/Evaluation.php index 9c0908bd2420c38b6830f01a9ad07e4b725d51a8..d92b31eb13f9baf4c822bdd34e2a6bd3340a250b 100644 --- a/app/Models/Evaluation.php +++ b/app/Models/Evaluation.php @@ -178,7 +178,7 @@ public function saveAutomaticAnswers() */ $previousEvaluation = Evaluation::where('status', Evaluation::STATUS_DONE) ->where('organization_id', $this->organization_id) - ->whereDate('updated_at', '<', $this->updated_at->toDateTime()) + ->where('updated_at', '<', $this->updated_at) ->orderBy('updated_at', 'DESC') ->first(); $calculated_level = MaturityAnswerLevelCalculator::calculateExecutionLevel($this, $previousEvaluation);