changes regarding error handling

This commit is contained in:
2024-03-09 16:45:27 -06:00
parent b9f9c8455f
commit b2b2dba352
6 changed files with 94 additions and 31 deletions

View File

@@ -19,13 +19,13 @@ const loadTeam = async (req,res,next) => {
tsUtils.teamsnapCallback
).then(bulkLoadItems=>{
const items = tsUtils.groupTeamsnapItems(bulkLoadItems, bulkLoadTypes)
tsUtils.teamsnapLog('bulkLoad', types=bulkLoadTypes, team_id, req);
req.members = items.members;
req.team_media_group = items.teamMediaGroups?.pop();
req.team_preferences = items.teamsPreferences.pop();
req.session.current_team_id = req.team.id
}
)
.then(() => tsUtils.teamsnapLog('bulkLoad', types=bulkLoadTypes, team_id, req))
)
}
else {