fix(siteinfo): rename GetSiteInfoByType

This commit is contained in:
LinkinStars 2023-04-16 12:42:45 +08:00
parent a5a3664f90
commit 336f54ff49
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ func (s *SiteInfoCommonService) GetSiteBranding(ctx context.Context) (resp *sche
// GetSiteUsers get site info about users
func (s *SiteInfoCommonService) GetSiteUsers(ctx context.Context) (resp *schema.SiteUsersResp, err error) {
resp = &schema.SiteUsersResp{}
if err = s.getSiteInfoByType(ctx, constant.SiteTypeUsers, resp); err != nil {
if err = s.GetSiteInfoByType(ctx, constant.SiteTypeUsers, resp); err != nil {
return nil, err
}
return resp, nil