Skip to content

Commit

Permalink
Set value ranking_published_at to null when coping quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
PrabuckiDominik committed Jan 19, 2025
1 parent a5e0afa commit 40face1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Services/QuizCloneService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function cloneQuiz(Quiz $quiz): Quiz
$quizCopy->locked_at = null;
$quizCopy->duration = null;
$quizCopy->scheduled_at = null;
$quizCopy->ranking_published_at = null;
$quizCopy->save();

foreach ($quiz->questions as $question) {
Expand Down

0 comments on commit 40face1

Please sign in to comment.