Skip to content

Commit

Permalink
updateByQuery has not been deprecated in 7.17.4
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Jan 3, 2024
1 parent 62a59dd commit 7251641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/services/index/ElasticsearchResources.scala
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ class ElasticsearchResources(override val client: ElasticClient, indexName: Stri

override def deleteWorkspace(workspaceId: String): Attempt[Unit] = {
executeUpdateByQuery {
updateByQuerySync(indexName,
updateByQuery(indexName,
nestedQuery(IndexFields.workspacesField,
termQuery(s"${IndexFields.workspacesField}.${IndexFields.workspaces.workspaceId}", workspaceId)
)
Expand Down Expand Up @@ -683,7 +683,7 @@ class ElasticsearchResources(override val client: ElasticClient, indexName: Stri
}

private def buildUpdateWorkspaceQuery(blobUri: Uri): UpdateByQueryRequest = {
updateByQuerySync(indexName,
updateByQuery(indexName,
boolQuery().should(
termQuery("_id", blobUri.value),
// Also recursively add anything that is a child of this blob to the workspace They won't appear in the tree
Expand Down

0 comments on commit 7251641

Please sign in to comment.