Skip to content

Commit e14fc75

Browse files
committed
Merge pull request #400 from Tasteful/DeleteByQuery2
Use JoinTypes-method
2 parents 5899904 + f3a8340 commit e14fc75

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Nest/Resolvers/PathResolver.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ public string GetDeleteByQueryPathForDynamic(QueryPathDescriptor<dynamic> descri
327327
else if (descriptor._Indices != null || descriptor._AllIndices) //if set to empty array asume all
328328
indices = "_all";
329329
else
330-
indices = this._connectionSettings.DefaultIndex;
331-
332-
string types = (descriptor._Types.HasAny()) ? string.Join(",", descriptor._Types) : null;
330+
indices = this._connectionSettings.DefaultIndex;
331+
332+
string types = (descriptor._Types.HasAny()) ? this.JoinTypes(descriptor._Types) : null;
333333

334334
return this.SearchPathJoin(indices, types, descriptor.GetUrlParams(), suffix);
335335
}
@@ -346,8 +346,8 @@ public string GetPathForTyped<T>(QueryPathDescriptor<T> descriptor, string suffi
346346
indices = this.Infer.IndexName<T>();
347347

348348
var types = this.Infer.TypeName<T>();
349-
if (descriptor._Types.HasAny())
350-
types = string.Join(",", descriptor._Types);
349+
if (descriptor._Types.HasAny())
350+
types = this.JoinTypes(descriptor._Types);
351351
else if (descriptor._Types != null || descriptor._AllTypes) //if set to empty array assume all
352352
types = null;
353353

0 commit comments

Comments
 (0)