Skip to content

Commit

Permalink
update implementation of totalTaskCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Jul 19, 2024
1 parent 6d12185 commit 1ec4d33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/Task/BoundedTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,8 @@ export const fetchBoundedTaskMarkers = function(criteria, limit = 50, skipDispat
} : null,

Check warning on line 126 in src/services/Task/BoundedTask.js

View check run for this annotation

Codecov / codecov/patch

src/services/Task/BoundedTask.js#L126

Added line #L126 was not covered by tests
}
).execute().then(normalizedResults => {
const totalCount = normalizedResults.result.total

let tasks = _values(_get(normalizedResults, 'entities.tasks', {}))
let tasks = _values(_get(normalizedResults, 'result', {}))
const totalCount = tasks.length
tasks = _map(tasks, task =>
Object.assign(task, {}, task.pointReview)

Check warning on line 132 in src/services/Task/BoundedTask.js

View check run for this annotation

Codecov / codecov/patch

src/services/Task/BoundedTask.js#L128-L132

Added lines #L128 - L132 were not covered by tests
)
Expand Down

0 comments on commit 1ec4d33

Please sign in to comment.