Skip to content

Commit 53da588

Browse files
authored
fix: return consistent response for re-index API (#126)
1 parent 5d9b565 commit 53da588

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/reindexer/dao.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func reindex(ctx context.Context, sourceIndex string, config *reindexConfig, wai
157157

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

163163
// Configure reindex source

0 commit comments

Comments
 (0)