mirror of
https://github.com/eyebluecn/tank.git
synced 2024-04-21 12:32:16 +00:00
feat: fix some bugs.
This commit is contained in:
@@ -171,9 +171,9 @@ func (this *SpaceDao) PageHandle(fun func(space *Space)) {
|
||||
var totalPages = int(math.Ceil(float64(count) / float64(pageSize)))
|
||||
var page int
|
||||
for page = 0; page < totalPages; page++ {
|
||||
_, users := this.PlainPage(0, pageSize, "", sortArray)
|
||||
for _, s := range users {
|
||||
fun(s)
|
||||
_, spaces := this.PlainPage(0, pageSize, "", sortArray)
|
||||
for _, space := range spaces {
|
||||
fun(space)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,6 +130,8 @@ func (this *TaskService) doScanTask() {
|
||||
|
||||
core.RunWithRecovery(func() {
|
||||
|
||||
this.logger.Info("scan spaceName = %s", space.Name)
|
||||
|
||||
//find admin as operator.
|
||||
adminUser := this.userDao.FindAnAdmin()
|
||||
this.matterService.DeleteByPhysics(request, adminUser, space)
|
||||
|
||||
Reference in New Issue
Block a user