modified phoneping
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user