checklist.js
556 Bytes
'use strict';
const Model = require('./model');
class Checklist extends Model {
constructor() {
super('checklist');
}
insertLog(id, projectname, branch, buildTime) {
this.insert({
"_id": id,
"projectname": projectname,
"branch": branch,
"buildtime": buildTime
});
}
updateState(id, state) {
this.update({
_id: id
}, {
$set: {
state: state,
}
});
}
}
module.exports = Checklist;