feat: alcance temporal configurable en importador y fix multi-carrera en ORM (v3.8.3)
This commit is contained in:
@@ -98,6 +98,11 @@ const handleGoogleSheetsImport = async (req, res, justSynced = false) => {
|
||||
if (req.body.single_date_only === 'true' || req.body.single_date_only === true || req.body.single_date_only === 'on') {
|
||||
syncPayload.single_date_only = true;
|
||||
}
|
||||
if (req.body.weeks_to_generate) {
|
||||
syncPayload.weeks_to_generate = parseInt(req.body.weeks_to_generate, 10);
|
||||
}
|
||||
if (req.body.date_from) syncPayload.date_from = req.body.date_from.trim();
|
||||
if (req.body.date_to) syncPayload.date_to = req.body.date_to.trim();
|
||||
// Toggles granulares de entidades
|
||||
syncPayload.import_careers = req.body.import_careers === 'true' || req.body.import_careers === true || req.body.import_careers === 'on';
|
||||
syncPayload.import_subjects = req.body.import_subjects === 'true' || req.body.import_subjects === true || req.body.import_subjects === 'on';
|
||||
@@ -164,6 +169,9 @@ const handleGoogleSheetsImport = async (req, res, justSynced = false) => {
|
||||
filter_days: req.body?.filter_days || ['Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'],
|
||||
manual_date: req.body?.manual_date || '',
|
||||
single_date_only: req.body?.single_date_only === 'true' || req.body?.single_date_only === 'on',
|
||||
weeks_to_generate: req.body?.weeks_to_generate || 16,
|
||||
date_from: req.body?.date_from || '',
|
||||
date_to: req.body?.date_to || '',
|
||||
flash_msg: flashMsg,
|
||||
flash_type: flashType
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user