Skip to content

Commit dbc20db

Browse files
unknownunknown
authored andcommitted
#5-08-2024
1 parent dbc57ad commit dbc20db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

teacher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ site.handleNotRoute = function (req, res) {
155155

156156
site.get("/x-update", (req, res) => {
157157
site.cmd("git pull", (data) => {
158-
res.end(data);
158+
res.end(data || 'error');
159159
console.log(data);
160160
site.cmd("pm2 restart 21", (data) => {
161161
console.log(data);

0 commit comments

Comments
 (0)