Skip to content

Commit e1dc925

Browse files
committed
Fix IT
1 parent 79efe2f commit e1dc925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/go/0chain.net/blobbercore/handler/storage_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ func (fsh *StorageHandler) ListEntities(ctx context.Context, r *http.Request) (*
469469
}
470470

471471
Logger.Info("Path Hash for list dir :" + pathHash)
472-
fileref, err := reference.GetLimitedRefFieldsByLookupHash(ctx, allocationID, pathHash, []string{"id", "path", "lookup_hash", "type", "name", "parent_path"})
472+
fileref, err := reference.GetLimitedRefFieldsByLookupHash(ctx, allocationID, pathHash, []string{"id", "path", "lookup_hash", "type", "name"})
473473
if err != nil {
474474
if errors.Is(err, gorm.ErrRecordNotFound) {
475475
// `/` always is valid even it doesn't exists in db. so ignore RecordNotFound error
@@ -509,7 +509,7 @@ func (fsh *StorageHandler) ListEntities(ctx context.Context, r *http.Request) (*
509509
return nil, common.NewError("invalid_parameters", "Invalid path. "+err.Error())
510510
}
511511

512-
parent, err := reference.GetReference(ctx, allocationID, fileref.ParentPath)
512+
parent, err := reference.GetReference(ctx, allocationID, r.ParentPath)
513513
if err != nil {
514514
return nil, common.NewError("invalid_parameters", "Invalid path. Parent dir of file not found. "+err.Error())
515515
}

0 commit comments

Comments
 (0)