feat: fix the scan bug.

This commit is contained in:
lishuang
2023-09-09 11:47:48 +08:00
parent a2716ed8b8
commit 2de7e6b2d0
+6
View File
@@ -134,6 +134,9 @@ func (this *TaskService) doScanTask() {
//find user by space
user := this.userDao.FindByUuid(space.UserUuid)
if user == nil {
user = this.userDao.FindAnAdmin()
}
this.matterService.DeleteByPhysics(request, user, space)
this.matterService.ScanPhysics(request, user, space)
@@ -153,6 +156,9 @@ func (this *TaskService) doScanTask() {
core.RunWithRecovery(func() {
//find user by space
user := this.userDao.FindByUuid(space.UserUuid)
if user == nil {
user = this.userDao.FindAnAdmin()
}
this.matterService.DeleteByPhysics(request, user, space)
this.matterService.ScanPhysics(request, user, space)