fix: remove event type

This commit is contained in:
Sérgio Salgado 2022-01-20 15:26:26 +00:00
parent b98d73cd6e
commit df4dd5ccb8
4 changed files with 4 additions and 22 deletions

View file

@ -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)
}