modified phoneping

This commit is contained in:
Senad Uka
2016-11-14 15:15:03 +01:00
parent ce71854ab1
commit 85a7d6a72f

View File

@@ -36,13 +36,15 @@ Api.addRoute('alarm/:id/phonePing', {
authRequired: false authRequired: false
}, { }, {
post: function() { post: function() {
return ControllerState.update({ ControllerState.update({
controller_id: this.urlParams.id controller_id: this.urlParams.id
}, { }, {
'$set': { '$set': {
'lastPhoneContact': new Date(), 'lastPhoneContact': new Date(),
} }
}); });
return stateOrDefault(this.urlParams.id);
} }
}); });