Skip to content

Commit 9b84ed7

Browse files
author
robot
committed
test
1 parent 31f1a17 commit 9b84ed7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

routes/github.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ router.all("/api/v1/github/webhook", async (ctx) => {
5050
JSON.stringify(mySolutions)
5151
);
5252

53-
process.exec(
54-
"sh " + path.resolve(__dirname, "../scripts/commit.sh"),
55-
console.log
53+
console.log(
54+
process.execSync("sh " + path.resolve(__dirname, "../scripts/commit.sh"))
5655
);
5756
}
5857

0 commit comments

Comments
 (0)