delete_restart.js
358 Bytes
'use strict';
const Model = require('./model');
class DeleteRestart extends Model {
constructor() {
super('delete_restart');
}
async updateState(id, state) {
await this.update({
_id: id
}, {
$set: {
state: state
}
});
}
}
module.exports = DeleteRestart;