Skip to content

Commit 2cba878

Browse files
meili-bors[bot]nicolasvienotatoulmet
authored
Merge #1561
1561: fix(type): add canceled status to type TaskStatus r=atoulmet a=nicolasvienot # Pull Request ## Related issue Fixes #1560 ## What does this PR do? In Meilisearch `v0.30.0`, the feature `Cancel processing and enqueued tasks` [has been added](https://github.com/meilisearch/meilisearch/releases/tag/v0.30.0). By doing so, they added a task status `canceled`. It's documented [here](https://www.meilisearch.com/docs/reference/api/tasks#status). The status `canceled` is missing in the type `TaskStatus` in meilisearch-js. - Add `canceled` status to `TaskStatus` type - Update a test in the cancel part of the task tests ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: nicolasvienot <[email protected]> Co-authored-by: Alexia Toulmet <[email protected]>
2 parents 613576a + c978148 commit 2cba878

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ export const enum TaskStatus {
347347
TASK_PROCESSING = 'processing',
348348
TASK_FAILED = 'failed',
349349
TASK_ENQUEUED = 'enqueued',
350+
TASK_CANCELED = 'canceled',
350351
}
351352

352353
export const enum TaskTypes {

0 commit comments

Comments
 (0)