perf: 优化会话删除

This commit is contained in:
kuaifan
2023-02-13 14:43:26 +08:00
parent 0c2ff1a000
commit d54e222ff2
5 changed files with 25 additions and 1 deletions

View File

@@ -1281,6 +1281,7 @@ class ProjectTask extends AbstractModel
if ($this->dialog_id) {
$dialog = WebSocketDialog::find($this->dialog_id);
$dialog?->deleteDialog();
$dialog?->pushMsg("groupDelete");
}
self::whereParentId($this->id)->delete();
$this->deleted_userid = User::userid();