Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
stbrody committed Jul 19, 2023
1 parent 01f10c4 commit a4bf9f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/core/src/indexing/database-index-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,9 @@ export abstract class DatabaseIndexApi<DateType = Date | number> {
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),
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/indexing/local-index-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4bf9f7

Please sign in to comment.