mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Various changes
This commit is contained in:
@ -52,6 +52,7 @@ module.exports = function(calendar) {
|
||||
createdOn: new Date(),
|
||||
createdBy: req.user,
|
||||
reason: req.body.reason,
|
||||
maintenanceType: req.body.maintenanceType || "",
|
||||
remarks: req.body.remarks || "",
|
||||
status: req.body.status,
|
||||
scheduling: req.body.scheduling,
|
||||
@ -144,6 +145,7 @@ module.exports = function(calendar) {
|
||||
workorder = result;
|
||||
|
||||
workorder.reason = req.body.reason;
|
||||
maintenanceType: req.body.maintenanceType || "";
|
||||
workorder.remarks = req.body.remarks;
|
||||
workorder.scheduling = req.body.scheduling;
|
||||
workorder.status = req.body.status;
|
||||
|
7
app/model/pms.js
Normal file
7
app/model/pms.js
Normal file
@ -0,0 +1,7 @@
|
||||
var mongoose = require('mongoose'),
|
||||
Schema = mongoose.Schema,
|
||||
ObjectId = Schema.ObjectId;
|
||||
|
||||
var pmSchema = new Schema({})
|
||||
|
||||
var Pm = module.exports = mongoose.model('Pm', pmSchema);
|
Reference in New Issue
Block a user