Skip to content

Commit

Permalink
Update purge api call
Browse files Browse the repository at this point in the history
Signed-off-by: pritamdas99 <[email protected]>
  • Loading branch information
pritamdas99 committed Jul 17, 2024
1 parent 625ead2 commit 323695e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solr/solrv9.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (sc *SLClientV9) DeleteBackup(ctx context.Context, backupName string, colle
}
req.SetQueryParams(params)

res, err := req.Delete("/solr/admin/collections")
res, err := req.Get("/solr/admin/collections")
if err != nil {
sc.log.Error(err, "Failed to send http request to restore a collection")
return nil, err
Expand Down Expand Up @@ -272,7 +272,7 @@ func (sc *SLClientV9) PurgeBackup(ctx context.Context, backupName string, collec
}
req.SetQueryParams(params)

res, err := req.Delete("/solr/admin/collections")
res, err := req.Get("/solr/admin/collections")
if err != nil {
sc.log.Error(err, "Failed to send http request to restore a collection")
return nil, err
Expand Down

0 comments on commit 323695e

Please sign in to comment.