add more logging to debug create session from custom URL
This commit is contained in:
parent
7f693b7e54
commit
de115773ec
|
|
@ -882,6 +882,7 @@
|
|||
data.friends_can_join = createSessionSettings.friends_can_join;
|
||||
|
||||
data.rsvp_slots = [];
|
||||
console.log("** calling getCreatorInstruments ");
|
||||
$.each(getCreatorInstruments(), function(index, instrument) {
|
||||
var slot = {};
|
||||
slot.instrument_id = instrument.id;
|
||||
|
|
@ -889,6 +890,7 @@
|
|||
slot.approve = true;
|
||||
data.rsvp_slots.push(slot);
|
||||
});
|
||||
console.log("** data.rsvp_slots 1", data.rsvp_slots);
|
||||
|
||||
var otherInstruments = instrumentRSVP.getSelectedInstruments();
|
||||
data.isUnstructuredRsvp = otherInstruments.length == 0 && userSelectedSlots(createSessionSettings.createType);
|
||||
|
|
@ -901,6 +903,7 @@
|
|||
data.rsvp_slots.push(slot);
|
||||
}
|
||||
});
|
||||
console.log("** data.rsvp_slots 2", data.rsvp_slots);
|
||||
}
|
||||
|
||||
var joinSession = function(sessionId) {
|
||||
|
|
@ -1511,6 +1514,7 @@
|
|||
var beginnerLevel = 1; // default to beginner
|
||||
instruments = [ {id: otherId, name: otherInstrumentInfo.display, level: beginnerLevel} ];
|
||||
}
|
||||
console.log("** creator instruments", instruments)
|
||||
return instruments;
|
||||
}
|
||||
|
||||
|
|
@ -1560,7 +1564,7 @@
|
|||
}
|
||||
|
||||
var qStr = hash.substring(hash.lastIndexOf('/') + 1);
|
||||
|
||||
|
||||
//decode the query params according to the custom format
|
||||
var qParamsArr = qStr.split('|');
|
||||
var isCustom, privacy, description, inviteeIds;
|
||||
|
|
@ -1594,7 +1598,7 @@
|
|||
|
||||
waitUntilSessionCreated().then(function(){
|
||||
//now async send invitations
|
||||
console.log('newSessionId', createSessionSettings.newSessionId)
|
||||
console.log('** newSessionId', createSessionSettings.newSessionId)
|
||||
if(createSessionSettings.newSessionId && inviteeIds !== undefined){
|
||||
var inviteUserIds = inviteeIds.split(',');
|
||||
inviteUserIds.forEach(function(inviteId){
|
||||
|
|
|
|||
Loading…
Reference in New Issue