Update node_helper.js

This commit is contained in:
shbatm 2019-01-04 18:12:12 -06:00 committed by GitHub
parent b9d6a235e3
commit 1f62b8f0b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ module.exports = NodeHelper.create({
data.module = sg.module; data.module = sg.module;
if (!err) { if (!err) {
sg.git.log({"-1": null}, function(err, data2) { sg.git.log({"-1": null}, function(err, data2) {
if (!err && data2.latest) { if (!err && data2.latest && "hash" in data2.latest) {
data.hash = data2.latest.hash; data.hash = data2.latest.hash;
self.sendSocketNotification("STATUS", data); self.sendSocketNotification("STATUS", data);
} }