• This project
    • Loading...
  • Sign in

fe / static-ci · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • static-ci
  • apps
  • models
  • building.js
  • deploy to pkg dir
    90de329d
    by xuqi
    2016-08-29 14:26:55 +0800  
    Browse Files
building.js 461 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 23 24 25
'use strict';

import Model from './model';

class Building extends Model {

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

    async updateState(id, state, version, pkgName) {
        await this.update({
            _id: id
        }, {
            $set: {
                state: state,
                version: version,
                pkgName: pkgName,
                updatedAt: new Date()
            }
        });
    }
}

export default Building;