From c1e4cfaf43542d62aa3c4631dc5ebac5d034d6a2 Mon Sep 17 00:00:00 2001 From: Andrew Sisley Date: Mon, 2 Oct 2023 13:20:28 -0400 Subject: [PATCH] fixup! WIP - Move refs from c.desc.Schema to c.Schema --- db/index.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/index.go b/db/index.go index 42ae92edfa..cf58cd6ba2 100644 --- a/db/index.go +++ b/db/index.go @@ -86,8 +86,7 @@ func NewCollectionIndex( return nil, NewErrIndexDescHasNoFields(desc) } index := &collectionSimpleIndex{collection: collection, desc: desc} - schema := collection.Description().Schema - field, foundField := schema.GetField(desc.Fields[0].Name) + field, foundField := collection.Schema().GetField(desc.Fields[0].Name) if !foundField { return nil, NewErrIndexDescHasNonExistingField(desc, desc.Fields[0].Name) }