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