|
|
@ -3,7 +3,6 @@ package loader |
|
|
|
import ( |
|
|
|
"context" |
|
|
|
"errors" |
|
|
|
"log" |
|
|
|
"strings" |
|
|
|
|
|
|
|
"git.aiterp.net/rpdata/api/model/character" |
|
|
@ -70,8 +69,6 @@ func characterIDBatch(ctx context.Context, keys dataloader.Keys) []*dataloader.R |
|
|
|
results := make([]*dataloader.Result, 0, len(keys)) |
|
|
|
ids := keys.Keys() |
|
|
|
|
|
|
|
log.Println("Loading", len(ids), "characters:", strings.Join(ids, ",")) |
|
|
|
|
|
|
|
characters, err := character.ListIDs(ids...) |
|
|
|
if err != nil { |
|
|
|
for range ids { |
|
|
|