Skip to content

Commit

Permalink
Use config DBHOST on update translations db script (#6632)
Browse files Browse the repository at this point in the history
* Use config DBHOST on update translations db script

* version bump

---------

Co-authored-by: A happy cat <[email protected]>
  • Loading branch information
daneryl and konzz authored Mar 26, 2024
1 parent 2088ee7 commit c13c75a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uwazi",
"version": "1.159.1",
"version": "1.159.2",
"description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.",
"keywords": [
"react"
Expand Down
2 changes: 1 addition & 1 deletion scripts/updateTranslationsDB.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const checkCSVsIntegrity = async availableCSVs => {

// eslint-disable-next-line max-statements
const run = async () => {
const url = process.env.DBHOST ? `mongodb://${process.env.DBHOST}/` : 'mongodb://127.0.0.1/';
const url = config.DBHOST;
await DB.connect(url, auth);
const { db } = DB.connectionForDB(config.defaultTenant.dbName);

Expand Down

0 comments on commit c13c75a

Please sign in to comment.