mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 04:24:44 +00:00
More data delete endpoints (#363)
This commit is contained in:
@@ -346,5 +346,8 @@ func (s *Search) DeleteData(ctx context.Context, request *adminpb.DeleteDataRequ
|
||||
toDelete = append(toDelete, entry.Index)
|
||||
|
||||
}
|
||||
return s.deleteIndices(ctx, toDelete, method)
|
||||
if len(toDelete) > 0 {
|
||||
return s.deleteIndices(ctx, toDelete, method)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user