@@ -34,14 +34,15 @@ export async function doAuditoriumResolveAction(
34
34
skipTalks = false ,
35
35
isInvite = true ,
36
36
) : Promise < void > {
37
+ const audId = await aud . getId ( ) ;
37
38
// We know that everyone should be in the backstage room, so resolve that list of people
38
39
// to make the identity server lookup efficient.
39
40
const backstagePeople = isInvite
40
41
? await conference . getInviteTargetsForAuditorium ( aud , true )
41
42
: await conference . getModeratorsForAuditorium ( aud ) ;
42
43
LogService . info ( "backstagePeople" , `${ backstagePeople } ` ) ;
43
44
const resolvedBackstagePeople = await resolveIdentifiers ( backstagePeople ) ;
44
- const backstage = conference . getAuditoriumBackstage ( await aud . getId ( ) ) ;
45
+ const backstage = conference . getAuditoriumBackstage ( audId ) ;
45
46
46
47
LogService . info ( "resolvedBackstagePeople" , `${ resolvedBackstagePeople } ` ) ;
47
48
@@ -53,12 +54,12 @@ export async function doAuditoriumResolveAction(
53
54
54
55
if ( backstageOnly ) return ;
55
56
56
- const realAud = conference . getAuditorium ( await aud . getId ( ) ) ;
57
+ const realAud = conference . getAuditorium ( audId ) ;
57
58
const audPeople = isInvite
58
59
? await conference . getInviteTargetsForAuditorium ( realAud )
59
60
: await conference . getModeratorsForAuditorium ( realAud ) ;
60
61
const resolvedAudPeople = audPeople . map ( p => allPossiblePeople . find ( b => p . id === b . person . id ) ) ;
61
- if ( resolvedAudPeople . some ( p => ! p ) ) throw new Error ( " Failed to resolve all targets for auditorium" ) ;
62
+ if ( resolvedAudPeople . some ( p => ! p ) ) throw new Error ( ` Failed to resolve all targets for auditorium ${ audId } ` ) ;
62
63
63
64
await action ( client , realAud . roomId , resolvedAudPeople as ResolvedPersonIdentifier [ ] ) ;
64
65
@@ -78,7 +79,7 @@ export async function doAuditoriumResolveAction(
78
79
const unresolveable = talkPeople . filter (
79
80
p => allPossiblePeople . find ( b => p . id === b . person . id ) === undefined
80
81
)
81
- throw new Error ( " Failed to resolve all targets for talk: " + JSON . stringify ( unresolveable ) ) ;
82
+ throw new Error ( ` Failed to resolve all targets for talk ${ await talk . getId ( ) } : ` + JSON . stringify ( unresolveable ) ) ;
82
83
}
83
84
84
85
await action ( client , talk . roomId , resolvedTalkPeople as ResolvedPersonIdentifier [ ] ) ;
0 commit comments