The sessions portion of the menu works.
This commit is contained in:
@@ -250,6 +250,27 @@ exports.v2_get_event_locations = async function (axios, event_id) {
|
||||
}
|
||||
|
||||
|
||||
exports.v2_get_event_sessions = async function (axios, event_id) {
|
||||
console.log('Requesting event sessions...');
|
||||
const url = '/v2/event/'+event_id+'/event_sessions';
|
||||
|
||||
const data = await axios.get(url)
|
||||
.then(function (response) {
|
||||
console.log('v2 location sessions data: ***');
|
||||
console.log(response.data);
|
||||
console.log('v2 location sessions data: ^^^');
|
||||
return response.data;
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
return error;
|
||||
});
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
|
||||
exports.v2_get_event_location_sessions = async function (axios, event_location_id) {
|
||||
console.log('Requesting location sessions...');
|
||||
const url = '/v2/event_location/'+event_location_id+'/event_sessions';
|
||||
|
||||
Reference in New Issue
Block a user