chore: update store types name (#1862)

This commit is contained in:
boojack
2023-06-29 22:55:03 +08:00
committed by GitHub
parent 7226a9ad47
commit 6a78887f1d
9 changed files with 85 additions and 54 deletions

View File

@ -179,7 +179,7 @@ func (s *APIV1Service) registerAuthRoutes(g *echo.Group, secret string) {
// Change the default role to host if there is no host user.
userCreate.Role = store.Host
} else {
allowSignUpSetting, err := s.Store.GetSystemSetting(ctx, &store.FindSystemSettingMessage{
allowSignUpSetting, err := s.Store.GetSystemSetting(ctx, &store.FindSystemSetting{
Name: SystemSettingAllowSignUpName.String(),
})
if err != nil && common.ErrorCode(err) != common.NotFound {