Skip to content

Commit

Permalink
Fix nedb index (#1428)
Browse files Browse the repository at this point in the history
* Fix index creation

* rush change

* add allowWarningsInSuccessfulBuild to command line

* Remove aws-infra unit tests. Update ttypescript dependency
  • Loading branch information
gonzalojaubert authored Sep 13, 2023
1 parent 7e81147 commit bdd3c3c
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 20 deletions.
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"
}
25 changes: 11 additions & 14 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cli/src/templates/project/package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const template = `{
"typescript": "4.7.4",
"ts-node": "9.1.1",
"@types/node": "16.11.7",
"ttypescript": "1.5.13",
"ttypescript": "1.5.15",
"graphql": "^16.6.0"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/framework-integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"serverless-artillery": "0.5.2",
"subscriptions-transport-ws": "0.11.0",
"ts-node": "^10.9.1",
"ttypescript": "1.5.13",
"ttypescript": "1.5.15",
"typescript": "4.7.4",
"sinon": "9.2.3",
"eslint-plugin-unicorn": "~44.0.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"clean": "rimraf ./dist tsconfig.tsbuildinfo",
"prepack": "tsc -b tsconfig.json",
"test:provider-aws-infrastructure": "npm run test",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\""
"test": ""
},
"bugs": {
"url": "https://github.com/boostercloud/booster/issues"
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
2 changes: 1 addition & 1 deletion packages/metadata-booster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@boostercloud/eslint-config": "workspace:^1.18.1",
"@types/node": "16.11.7",
"ts-node": "^10.9.1",
"ttypescript": "1.5.13",
"ttypescript": "1.5.15",
"typescript": "4.7.4",
"prettier": "2.3.0",
"sinon": "9.2.3",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/10_going-deeper/data-migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class CartIdDataMigrateV2 {
"typescript": "4.5.4",
"ts-node": "9.1.1",
"@types/node": "15.0.2",
"ttypescript": "1.5.13",
"ttypescript": "1.5.15",
"@boostercloud/metadata-booster": "0.30.2"
},
```

0 comments on commit bdd3c3c

Please sign in to comment.