From 80a316a23f1266bd223d413ce85d37aacca622eb Mon Sep 17 00:00:00 2001 From: Thea Hvalen Thodesen Date: Fri, 12 Jan 2024 10:49:13 +0100 Subject: [PATCH] KURSP-1061: fix path to diploma model --- app/Services/DiplomaService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/DiplomaService.php b/app/Services/DiplomaService.php index 75500924..0a571f5c 100644 --- a/app/Services/DiplomaService.php +++ b/app/Services/DiplomaService.php @@ -79,7 +79,7 @@ private function findLastModuleNo($modules) { } private function storeDiplomaCompletionForUser($userId, $courseId) { - \App\Diploma::updateOrCreate(['user_id' => $userId],['course_id' => $courseId]); + \App\Models\Diploma::updateOrCreate(['user_id' => $userId],['course_id' => $courseId]); } public function hasDeservedDiploma($settings) {