Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
description,
start,
end,
location,
url,
status: 'CONFIRMED',
organizer: {
name: parentCollective.name,
email: `hello@${parentCollective.slug}.opencollective.com`,
},
alarms,
};
if (this.location.lat) {
event.geo = { lat: this.location.lat, lon: this.location.long };
}
ics.createEvent(event, (err, res) => {
if (err) {
console.error(`Error while generating the ics file for event id ${this.id} (${url})`, err);
}
return resolve(res);
});
});
});
return new Promise((resolve, reject) => {
ics.createEvent(data, (err, value) => {
if (err) {
reject(err)
return
}
resolve(value)
})
})
}
description,
start,
end,
location,
url,
status: 'CONFIRMED',
organizer: {
name: parentCollective.name,
email: `hello@${parentCollective.slug}.opencollective.com`,
},
alarms,
};
if (this.location.lat) {
event.geo = { lat: this.location.lat, lon: this.location.long };
}
ics.createEvent(event, (err, res) => {
if (err) {
logger.error(`Error while generating the ics file for event id ${this.id} (${url})`, err);
}
return resolve(res);
});
});
});