fix: 已存在的任务新添加负责人不出现在任务群聊里

This commit is contained in:
kuaifan
2022-02-10 17:09:44 +08:00
parent 3a76f51707
commit f7cd4f34d3
2 changed files with 2 additions and 2 deletions

View File

@@ -212,7 +212,7 @@ class Project extends AbstractModel
*/
public function relationUserids()
{
return $this->projectUser->pluck('userid')->toArray();
return ProjectUser::whereProjectId($this->id)->orderBy('id')->pluck('userid')->toArray();
}
/**