Skip to content

Commit

Permalink
fix: adapt to db-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Dec 7, 2022
1 parent 65a69f2 commit 029e083
Show file tree
Hide file tree
Showing 5 changed files with 632 additions and 596 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
env: { NODE_OPTIONS: '--max-old-space-size=3200' }
steps:
- { uses: actions/checkout@v3, with: { persist-credentials: true } }
- { uses: actions/setup-node@v3, with: { node-version: 16, cache: 'yarn' } }
- { uses: actions/setup-node@v3, with: { node-version: 18, cache: 'yarn' } }

# Cache for npm/npx in ~/.npm
- uses: actions/cache@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"url": "https://github.com/NaturalCycles/mongo-lib"
},
"engines": {
"node": ">=14.15.0"
"node": ">=16.10.0"
},
"version": "3.4.16",
"description": "MongoDB implementation of CommonDB interface",
Expand Down
2 changes: 1 addition & 1 deletion src/mongo.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class MongoDB extends BaseCommonDB implements CommonDB {
return items.map(i => this.mapFromMongo(i))
}

override async deleteByIds<ROW extends ObjectWithId>(
async deleteByIds<ROW extends ObjectWithId>(
table: string,
ids: ROW['id'][],
opt: MongoDBOptions = {},
Expand Down
5 changes: 5 additions & 0 deletions src/test/mongo.manual.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ afterAll(async () => {
describe('runCommonDBTest', () =>
runCommonDBTest(mongoDB, {
bufferSupport: false,
insert: false,
update: false,
tableSchemas: false,
transactions: false,
updateByQuery: false,
}))

describe('runCommonDaoTest', () => runCommonDaoTest(mongoDB))
Expand Down
Loading

0 comments on commit 029e083

Please sign in to comment.