diff --git a/src/models/store.js b/src/models/store.js index 31e2c985..34a9d240 100644 --- a/src/models/store.js +++ b/src/models/store.js @@ -261,7 +261,10 @@ const installationschema = new mongoose.Schema({ }, category: { type: String, - enum: ["Power Outage", "Level1", "Pending", "Onsite Issues"], + enum: [ "Power Outage", + "Pending", + "Resolved", + "Escalation",], required: true }, movedAt: { diff --git a/src/routes/installationRoute.js b/src/routes/installationRoute.js index 0b5191e3..1f2fa40e 100644 --- a/src/routes/installationRoute.js +++ b/src/routes/installationRoute.js @@ -779,7 +779,10 @@ module.exports = function (fastify, opts, next) { supportId: { type: 'string' }, category: { type: 'string', - enum: ['Power Outage', 'Level1', 'Pending', 'Onsite Issues'] + enum: ["Power Outage", + "Pending", + "Resolved", + "Escalation"] } } },