diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks/utils.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/utils.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/utils.ts b/server/sonar-web/src/main/js/apps/background-tasks/utils.ts index 404272baadd..93219d14b9e 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/utils.ts +++ b/server/sonar-web/src/main/js/apps/background-tasks/utils.ts @@ -31,7 +31,7 @@ export interface Query { } export function updateTask(tasks: Task[], newTask: Task) { - return tasks.map(task => (task.id === newTask.id ? newTask : task)); + return tasks.map((task) => (task.id === newTask.id ? newTask : task)); } export function mapFiltersToParameters(filters: Partial<Query> = {}) { @@ -43,14 +43,14 @@ export function mapFiltersToParameters(filters: Partial<Query> = {}) { TaskStatuses.InProgress, TaskStatuses.Success, TaskStatuses.Failed, - TaskStatuses.Canceled + TaskStatuses.Canceled, ].join(); } else if (filters.status === STATUSES.ALL_EXCEPT_PENDING) { parameters.status = [ TaskStatuses.InProgress, TaskStatuses.Success, TaskStatuses.Failed, - TaskStatuses.Canceled + TaskStatuses.Canceled, ].join(); } else { parameters.status = filters.status; |