Skip to content

Commit

Permalink
fix: return consistent response for re-index API (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
bietkul authored Jul 1, 2020
1 parent 5d9b565 commit 53da588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/reindexer/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func reindex(ctx context.Context, sourceIndex string, config *reindexConfig, wai

// do not copy data
if !(len(config.Action) == 0 || found) {
return nil, nil
return json.Marshal(make(map[string]interface{}))
}

// Configure reindex source
Expand Down

0 comments on commit 53da588

Please sign in to comment.