generated from liutk/owl-admin-base
Update
parent
0c9f3057d4
commit
ea9aeebeb3
|
|
@ -68,6 +68,12 @@ class WorkflowController extends Controller
|
|||
}
|
||||
$info = $model::query()->with($include)->findOrFail($id);
|
||||
|
||||
switch ($model) {
|
||||
case TaskHygiene::class:
|
||||
$info = tap($info->task)->setRelation('taskable', $info->unsetRelation('task'));
|
||||
break;
|
||||
}
|
||||
|
||||
return $resource::make($info);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue