Skip to content

Commit

Permalink
Merge pull request #628 from telefonicaid/fix/ensure_nameOnly_boolean
Browse files Browse the repository at this point in the history
Fix/ensure nameOnly mongo db flag is  boolean
  • Loading branch information
fgalan authored Nov 28, 2023
2 parents d78e8d1 + dd4bf50 commit ed95582
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Fix: the way in which list collection is done at MongoDB (ensure¡ing nameOnly flag is boolean) so STH can support MongoDB 5.0+ versions
- Fix: TRUNCATION_EXPIRE_AFTER_SECONDS functionality (#606)
- Set Nodejs 14 as minimum version in packages.json (effectively removing Nodev12 from supported versions)
- Add: CORS_ENABLED env var (boolean) to enable the cors configuration (of config.js file) in your docker image (#608)
2 changes: 1 addition & 1 deletion lib/database/model/sthDatabaseNameCodecTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ function copyDatabase(options, databaseName, callback) {
const adminDB = sthDatabase.connection.admin();
const listCommand = {
listCollections: 1,
nameOnly: 1
nameOnly: true
};
var sourceDB = databaseName;
var targetDB = options.encode
Expand Down
2 changes: 1 addition & 1 deletion lib/database/model/sthDatabaseNameMapperTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function copyDatabase(options, databaseName, callback) {
const adminDB = sthDatabase.connection.admin();
const listCommand = {
listCollections: 1,
nameOnly: 1
nameOnly: true
};
var sourceDB = databaseName;
var targetDB = options.encode
Expand Down

0 comments on commit ed95582

Please sign in to comment.