feat: fix some bugs.

This commit is contained in:
lishuang
2023-08-12 16:46:36 +08:00
parent 3e81d886f6
commit 9b19fd1e9d
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -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)
}
}
}
+2
View File
@@ -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)