Skip to content

Commit

Permalink
fix accepted stats for released items (#264)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin <[email protected]>
  • Loading branch information
51ngul4r1ty and singularity15 authored Dec 28, 2020
1 parent 0cd9c44 commit de545bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atoll",
"version": "0.35.0",
"version": "0.35.1",
"author": {
"name": "Kevin Berry",
"email": "[email protected]"
Expand Down
4 changes: 2 additions & 2 deletions src/server/api/handlers/sprintUpdateStats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Request, Response } from "express";
import { Transaction } from "sequelize";

// libraries
import { BacklogItemStatus, mapApiStatusToBacklogItem } from "@atoll/shared";
import { BacklogItemStatus, hasBacklogItemAtLeastBeenAccepted, mapApiStatusToBacklogItem } from "@atoll/shared";

// data access
import { sequelize } from "../../dataaccess/connection";
Expand Down Expand Up @@ -38,7 +38,7 @@ export const sprintUpdateStatsPostHandler = async (req: Request, res: Response)
totalPoints += sprintBacklogItemTyped.estimate;
plannedPoints += sprintBacklogItemTyped.estimate;
const status = mapApiStatusToBacklogItem(sprintBacklogItemTyped.status);
if (status === BacklogItemStatus.Accepted) {
if (hasBacklogItemAtLeastBeenAccepted(status)) {
acceptedPoints += sprintBacklogItemTyped.estimate;
}
}
Expand Down

0 comments on commit de545bd

Please sign in to comment.