|
|
@ -9,7 +9,6 @@ import ( |
|
|
|
"git.aiterp.net/rpdata/api/model/change" |
|
|
|
|
|
|
|
"git.aiterp.net/rpdata/api/internal/session" |
|
|
|
"git.aiterp.net/rpdata/api/model/character" |
|
|
|
"git.aiterp.net/rpdata/api/model/log" |
|
|
|
) |
|
|
|
|
|
|
@ -283,7 +282,12 @@ func (r *LogResolver) Open() bool { |
|
|
|
|
|
|
|
// Characters resolves Log.characters
|
|
|
|
func (r *LogResolver) Characters(ctx context.Context) ([]*CharacterResolver, error) { |
|
|
|
chars, err := character.ListIDs(r.L.CharacterIDs...) |
|
|
|
loader := loader.FromContext(ctx) |
|
|
|
if loader == nil { |
|
|
|
return nil, errors.New("no loader") |
|
|
|
} |
|
|
|
|
|
|
|
chars, err := loader.Characters("id", r.L.CharacterIDs...) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|