Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert d8c5095ebb0df923fb289a50695def30a28fc510 #7894

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions src/plugins/persistence/couch/scripts/lockObjects.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,8 @@ import http from 'http';
import nano from 'nano';
import { parseArgs } from 'util';

const COUCH_URL = process.env.OPENMCT_COUCH_URL;
const COUCH_DB_NAME = process.env.OPENMCT_DATABASE_NAME;

if (!COUCH_URL || !COUCH_DB_NAME) {
console.error(
'Error: Environment variables OPENMCT_COUCH_URL and OPENMCT_DATABASE_NAME must be set.'
);
process.exit(1);
}
const COUCH_URL = process.env.OPENMCT_COUCH_URL || 'http://127.0.0.1:5984';
const COUCH_DB_NAME = process.env.OPENMCT_DATABASE_NAME || 'openmct';

const {
values: { couchUrl, database, lock, unlock, startObjectKeystring, user, pass }
Expand Down
Loading