From a4bf9f734c96f23eae3128688bbda5b29d56a788 Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Wed, 19 Jul 2023 17:23:06 -0400 Subject: [PATCH] minor --- packages/core/src/indexing/database-index-api.ts | 6 ++---- packages/core/src/indexing/local-index-api.ts | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/core/src/indexing/database-index-api.ts b/packages/core/src/indexing/database-index-api.ts index c2341e64e9..4e0eda7bbe 100644 --- a/packages/core/src/indexing/database-index-api.ts +++ b/packages/core/src/indexing/database-index-api.ts @@ -220,11 +220,9 @@ export abstract class DatabaseIndexApi { is_indexed: true, }) ).map((result) => { - const streamID = StreamID.fromString(result.model) - const indices = this.parseIndices(result.indices) return { - streamID, - indices, + streamID: StreamID.fromString(result.model), + indices: this.parseIndices(result.indices), } }) } diff --git a/packages/core/src/indexing/local-index-api.ts b/packages/core/src/indexing/local-index-api.ts index 6b5dd80fad..ed235bbc83 100644 --- a/packages/core/src/indexing/local-index-api.ts +++ b/packages/core/src/indexing/local-index-api.ts @@ -39,7 +39,7 @@ async function _getIndexModelArgs(req: ModelData, repository: Repository): Promi if (content.relations) { opts.relations = content.relations } - opts.indices = req.indices ?? [] + opts.indices = req.indices } return opts