Skip to content

Commit

Permalink
Fixing typo (#933)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski authored Oct 31, 2024
1 parent 3b7cce6 commit c23998f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quesma/quesma/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func configureRouter(cfg *config.QuesmaConfiguration, sr schema.Registry, lm *cl
})

router.Register(routes.AsyncSearchIdPath, and(method("DELETE"), matchedAgainstAsyncId()), func(ctx context.Context, req *mux.Request) (*mux.Result, error) {
responseBody, err := queryRunner.deleteAsyncSeach(req.Params["id"])
responseBody, err := queryRunner.deleteAsyncSearch(req.Params["id"])
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion quesma/quesma/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ func (q *QueryRunner) handlePartialAsyncSearch(ctx context.Context, id string) (
}
}

func (q *QueryRunner) deleteAsyncSeach(id string) ([]byte, error) {
func (q *QueryRunner) deleteAsyncSearch(id string) ([]byte, error) {
if !strings.Contains(id, tracing.AsyncIdPrefix) {
return nil, errors.New("invalid quesma async search id : " + id)
}
Expand Down

0 comments on commit c23998f

Please sign in to comment.