Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nedb index #1428

Merged
merged 4 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@boostercloud/framework-core",
"comment": "Fix local provider index",
"type": "patch"
}
],
"packageName": "@boostercloud/framework-core"
}
3 changes: 2 additions & 1 deletion common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"commandKind": "bulk",
"name": "test",
"summary": "Runs unit tests for all packages",
"enableParallelism": true
"enableParallelism": true,
"allowWarningsInSuccessfulBuild": true
},
{
"commandKind": "bulk",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class ReadModelRegistry {
public readonly readModels: DataStore<ReadModelEnvelope> = new DataStore(readModelsDatabase)
constructor() {
this.readModels.loadDatabase()
this.readModels.ensureIndex({ fieldName: 'uniqueKey', unique: true })
this.readModels.ensureIndex({ fieldName: 'uniqueKey', unique: true, sparse: true })
}

public async query(
Expand Down
Loading