fix: remove event type
This commit is contained in:
parent
b98d73cd6e
commit
df4dd5ccb8
4 changed files with 4 additions and 22 deletions
|
|
@ -153,7 +153,6 @@ function unpair (rec) {
|
|||
function reboot (rec) {
|
||||
return db.none('NOTIFY $1:name, $2', ['machineAction', JSON.stringify(
|
||||
{
|
||||
type: 'machineAction',
|
||||
action: 'reboot',
|
||||
value: _.pick(['deviceId', 'operatorId', 'action'], rec)
|
||||
}
|
||||
|
|
@ -163,7 +162,6 @@ function reboot (rec) {
|
|||
function shutdown (rec) {
|
||||
return db.none('NOTIFY $1:name, $2', ['machineAction', JSON.stringify(
|
||||
{
|
||||
type: 'machineAction',
|
||||
action: 'shutdown',
|
||||
value: _.pick(['deviceId', 'operatorId', 'action'], rec)
|
||||
}
|
||||
|
|
@ -173,7 +171,6 @@ function shutdown (rec) {
|
|||
function restartServices (rec) {
|
||||
return db.none('NOTIFY $1:name, $2', ['machineAction', JSON.stringify(
|
||||
{
|
||||
type: 'machineAction',
|
||||
action: 'restartServices',
|
||||
value: _.pick(['deviceId', 'operatorId', 'action'], rec)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue