.export excel
This commit is contained in:
parent
02cac75ff9
commit
58f513f1cc
@ -122,15 +122,17 @@ const extraControllers = {
|
||||
const userId = req.user.id;
|
||||
let entityType = null;
|
||||
let entityId = null
|
||||
|
||||
// console.log('params.params.typeOrId>>>>++++++++++++++++++++++++++ 1 ', params.params.typeOrId);
|
||||
//typeOrId puede ser college, partner o el id de la entidad de la reserva
|
||||
const typeOrId = params.params.typeOrId;
|
||||
if (!typeOrId) {
|
||||
if ((typeOrId === "colleges") || (params.params.typeOrId !== "partners"))
|
||||
if (typeOrId !== null) {
|
||||
if ((typeOrId === "colleges") || (params.params.typeOrId === "partners"))
|
||||
entityType = typeOrId
|
||||
else
|
||||
entityId = entityType;
|
||||
entityId = typeOrId;
|
||||
};
|
||||
// console.log('params.params.typeOrId>>>>++++++++++++++++++++++++++ 2 ', entityId);
|
||||
// console.log('params.params.typeOrId>>>>++++++++++++++++++++++++++ 3 ', entityType);
|
||||
|
||||
const reservations = await eventReservationService._getReservationsExcel(
|
||||
req.user,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user