Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Oct 11, 2024
1 parent 86d0702 commit 51103a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/mongo/command-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function setup(api) {
dest: '/opt/mongodb/mongo-start-new.sh',
vars: {
mongoVersion: mongoConfig.version,
mongoshCmd: mongoConfig.version.split(".")[0] > 5 ? "mongosh" : "mongo",
mongoshCmd: mongoConfig.version.split('.')[0] > 5 ? 'mongosh' : 'mongo',
mongoDbDir: '/var/lib/mongodb'
}
});
Expand Down Expand Up @@ -117,7 +117,7 @@ export function shell(api) {

const conn = new Client();
conn.on('ready', () => {
conn.exec(`docker exec -it mongodb ${config.mongo.version.split(".")[0] > 5 ? "mongosh" : "mongo" } ${dbName}`, {
conn.exec(`docker exec -it mongodb ${config.mongo.version.split('.')[0] > 5 ? 'mongosh' : 'mongo'} ${dbName}`, {
pty: true
}, (err, stream) => {
if (err) {
Expand Down Expand Up @@ -161,7 +161,7 @@ export async function status(api) {
output: mongoStatus
} = await api.runSSHCommand(
server,
`docker exec mongodb ${config.mongo.version.split(".")[0] > 5 ? "mongosh" : "mongo" } --eval ${mongoCommand} --quiet`
`docker exec mongodb ${config.mongo.version.split('.')[0] > 5 ? 'mongosh' : 'mongo'} --eval ${mongoCommand} --quiet`
);

try {
Expand Down

0 comments on commit 51103a7

Please sign in to comment.