Merge branch 'dillon/74-admin-workflow' into vapor/development

This commit is contained in:
Dillon Ngo
2025-02-18 09:36:44 +08:00
3 changed files with 5 additions and 3 deletions
@@ -5,6 +5,7 @@ namespace App\Classes\General\Eloquent\Filters;
use App\Models\QAUserAnswerSelected;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Facades\Log;
class IdAfter implements Filter
{
@@ -16,9 +17,10 @@ class IdAfter implements Filter
*/
public static function apply(Builder $builder, $value)
{
[$id, $questionGroups] = $value;
[$id, $reference, $questionGroups] = $value;
$nextId = QAUserAnswerSelected::where('id', '>', $id)
->where('reference', $reference)
->whereIn('answer', $questionGroups)
->orderBy('id', 'asc')
->limit(1)
@@ -166,7 +166,7 @@
},
created(){
this.options['reference'] = this.item.reference;
this.options['id_after'] = [this.item.id, this.item.question_groups];
this.options['id_after'] = [this.item.id, this.item.reference, this.item.question_groups];
},
methods: {
expand(){
@@ -110,7 +110,7 @@
},
created(){
this.options['reference'] = this.item.reference;
this.options['id_after'] = [this.item.id, this.item.question_groups];
this.options['id_after'] = [this.item.id, this.item.reference, this.item.question_groups];
},
methods: {
expand(){