diff --git a/app/controllers/quarterlyWindowsConfiguration.controller.js b/app/controllers/quarterlyWindowsConfiguration.controller.js index 4596af3..4c0d09d 100644 --- a/app/controllers/quarterlyWindowsConfiguration.controller.js +++ b/app/controllers/quarterlyWindowsConfiguration.controller.js @@ -11,7 +11,7 @@ const { sendEmailService } = require("../services/email.service"); exports.createConfig = async (req, res) => { try { - const {quarter, year, start_date, end_date } = req.body; + const {survey_name, quarter, year, start_date, end_date } = req.body; // find config const exists = await QuarterlyWindowsConfiguration.findOne({where: { quarter, year }});