Add Github link to update info

This commit is contained in:
Chris van Marle
2017-10-16 09:35:25 +02:00
parent 08aa9790f3
commit e7b9100f1c
2 changed files with 21 additions and 4 deletions

View File

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