Skip to content
Snippets Groups Projects
Commit 9d4c528a authored by seb2903's avatar seb2903
Browse files

correctif pour rechercher les evaluations precedentes

parent d81472b8
No related branches found
No related tags found
No related merge requests found
Pipeline #71160 failed
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment