fix: [AH-387]: root not found error - replace with the right method (#2735)

* fix: [AH-387]: root not found error - lint error
* fix: [AH-387]: root not found error - replace with the right method
pull/3560/head
Shivakumar Ningappa 2024-09-24 22:26:55 +00:00 committed by Harness
parent 31c8fa62f0
commit 115050d4dd
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ func (h *Handler) getRegistryInfo(r *http.Request, remoteSupport bool) (pkg.Regi
return pkg.RegistryInfo{}, err
}
rootSpace, err := h.SpaceStore.FindByRef(ctx, rootIdentifier)
rootSpace, err := h.SpaceStore.FindByRefCaseInsensitive(ctx, rootIdentifier)
if err != nil {
log.Ctx(ctx).Error().Msgf("Root space not found: %s", rootIdentifier)
return pkg.RegistryInfo{}, errcode.ErrCodeRootNotFound