Skip to content

Commit

Permalink
fix(deps): update dependency mongodb to v4.2.0 (#1903)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency mongodb to v4.2.0

* refactor(h5p-mongos3): type conversions for ids

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Sebastian Rettig <serettig@posteo.de>
  • Loading branch information
3 people authored Nov 20, 2021
1 parent 3d077e2 commit f191f50
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions packages/h5p-mongos3/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/h5p-mongos3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@lumieducation/h5p-server": "^9.0.3",
"aws-sdk": "2.1033.0",
"mongodb": "4.1.4",
"mongodb": "4.2.0",
"stream-buffers": "^3.0.2"
},
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/h5p-mongos3/src/MongoLibraryStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ export default class MongoLibraryStorage implements ILibraryStorage {
return list
.map((e) => {
try {
return LibraryName.fromUberName(e._id);
return LibraryName.fromUberName(e._id as any);
} catch {
log.error(
`invalid ubername pattern in library storage id: ${e._id}. Ignoring...`
Expand Down
2 changes: 1 addition & 1 deletion packages/h5p-mongos3/src/MongoS3LibraryStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ export default class MongoS3LibraryStorage implements ILibraryStorage {
return list
.map((e) => {
try {
return LibraryName.fromUberName(e._id);
return LibraryName.fromUberName(e._id as any);
} catch {
log.error(
`invalid ubername pattern in library storage id: ${e._id}. Ignoring...`
Expand Down

0 comments on commit f191f50

Please sign in to comment.