Skip to content

Commit 46d3f10

Browse files
Copilotimnasnainaec
andcommitted
Fix prettier formatting in startDatabase.js and tasks.json
Co-authored-by: imnasnainaec <6411521+imnasnainaec@users.noreply.github.com>
1 parent 34a4308 commit 46d3f10

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.vscode/tasks.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@
3030
"label": "run-mongo",
3131
"command": "mongod",
3232
"type": "process",
33-
"args": ["--dbpath", "${workspaceFolder}/mongo_database", "--replSet", "rs0"],
33+
"args": [
34+
"--dbpath",
35+
"${workspaceFolder}/mongo_database",
36+
"--replSet",
37+
"rs0"
38+
],
3439
"problemMatcher": "$tsc"
3540
}
3641
]

scripts/startDatabase.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ async function initReplicaSet() {
3535
async function main() {
3636
await ensureDir(dbPath);
3737

38-
const mongod = spawn("mongod", [`--dbpath=${dbPath}`, "--replSet", replSetName], {
39-
stdio: "inherit",
40-
});
38+
const mongod = spawn(
39+
"mongod",
40+
[`--dbpath=${dbPath}`, "--replSet", replSetName],
41+
{
42+
stdio: "inherit",
43+
}
44+
);
4145

4246
mongod.on("error", (err) => {
4347
console.error(`mongod error: ${err.message}`);

0 commit comments

Comments
 (0)