Farm alarm #29

Merged
senaduka merged 10 commits from farm_alarm into master 2016-11-19 11:06:52 +01:00
Showing only changes of commit 85a7d6a72f - Show all commits

View File

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