Merge pull request #1509 from shbatm/bug-fix

Fixes Incomplete fix for MichMich/MagicMirror#1507
This commit is contained in:
Michael Teeuw 2019-01-05 07:09:35 +01:00 committed by GitHub
commit 4686bb5584
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;
if (!err) {
sg.git.log({"-1": null}, function(err, data2) {
if (!err) {
if (!err && data2.latest && "hash" in data2.latest) {
data.hash = data2.latest.hash;
self.sendSocketNotification("STATUS", data);
}