• This project
    • Loading...
  • Sign in

OPENTECH / yoho-node-ci · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 2
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yoho-node-ci
  • apps
  • models
  • restart.js
  • 新增重启功能
    8f0b6edf
    by 沈志敏
    2016-10-13 15:45:54 +0800  
    Browse Files
restart.js 332 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
'use strict';

import Model from './model';

class Restart extends Model {

    constructor() {
        super('restart');
    }

    async updateState(id, state) {
        await this.update({
            _id: id
        }, {
            $set: {
                state: state
            }
        });
    }
}

export default Restart;