- 修复「修改接入网关失败」的问题
- 完成「[功能请求]审计的历史会话建议添加“已阅”的功能」close #194 - 增加一键删除登录日志和历史会话的功能
This commit is contained in:
@ -26,7 +26,10 @@ func NewStorageService(storageRepository *repository.StorageRepository, userRepo
|
||||
}
|
||||
|
||||
func (r StorageService) InitStorages() error {
|
||||
users := r.userRepository.FindAll()
|
||||
users, err := r.userRepository.FindAll()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for i := range users {
|
||||
userId := users[i].ID
|
||||
_, err := r.storageRepository.FindByOwnerIdAndDefault(userId, true)
|
||||
|
Reference in New Issue
Block a user