mirror of
https://github.com/eyebluecn/tank.git
synced 2024-04-21 12:32:16 +00:00
feat: fix the scan bug.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user