diff --git a/quesma/quesma/router.go b/quesma/quesma/router.go index 6600a2bf2..95645a35d 100644 --- a/quesma/quesma/router.go +++ b/quesma/quesma/router.go @@ -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 } diff --git a/quesma/quesma/search.go b/quesma/quesma/search.go index ed22cff85..894053da4 100644 --- a/quesma/quesma/search.go +++ b/quesma/quesma/search.go @@ -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) }