|
@ -125,10 +125,10 @@ func (r *mutationResolver) ImportLog(ctx context.Context, input input.LogImportI |
|
|
|
|
|
|
|
|
newLogs := make([]models.Log, 0, len(results)) |
|
|
newLogs := make([]models.Log, 0, len(results)) |
|
|
for _, result := range results { |
|
|
for _, result := range results { |
|
|
go func() { |
|
|
|
|
|
|
|
|
go func(result logs.ImportedLog) { |
|
|
changes.Submit("Log", "add", token.UserID, true, changekeys.Many(result.Log), result.Log) |
|
|
changes.Submit("Log", "add", token.UserID, true, changekeys.Many(result.Log), result.Log) |
|
|
changes.Submit("Post", "add", token.UserID, true, changekeys.Many(result.Log, result.Posts), result.Posts) |
|
|
changes.Submit("Post", "add", token.UserID, true, changekeys.Many(result.Log, result.Posts), result.Posts) |
|
|
}() |
|
|
|
|
|
|
|
|
}(result) |
|
|
|
|
|
|
|
|
log, err := logs.UpdateCharacters(result.Log, nil) |
|
|
log, err := logs.UpdateCharacters(result.Log, nil) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|