Fix API typo: /get-global-certs

This commit is contained in:
Yang Luo
2023-11-13 14:22:40 +08:00
parent 2d4998228c
commit e9b7d1266f
7 changed files with 14 additions and 14 deletions

View File

@ -87,7 +87,7 @@ func GetGlobalCertsCount(field, value string) (int64, error) {
return session.Count(&Cert{})
}
func GetGlobleCerts() ([]*Cert, error) {
func GetGlobalCerts() ([]*Cert, error) {
certs := []*Cert{}
err := ormer.Engine.Desc("created_time").Find(&certs)
if err != nil {