Skip to content

Commit

Permalink
additional commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-mishra019 committed Sep 26, 2023
1 parent 0dbb1d6 commit 7b3fb9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/model/sprints/tark/updateAutoSprintStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
***********************************************************/

const { currentDate, currentTime, createSprintName, addDays } = require("../../application/lib");
const { sprintCreationMailer } = require("../../mailer/lib");
const { getOrgUseAppKey } = require("../../organization/lib");
const { migrateTasks } = require("../../tasks/tark/migrateTasks");
const { getTeamUseTeamId, updateTeamDetails } = require("../../teams/lib");
Expand Down Expand Up @@ -114,6 +115,7 @@ exports.updateAutoSprintStatus = function(appKey, teamId) {
};
const updateTeamCurrentSprint = updateTeamDetails(inputJson, orgDomain, teamName);

sprintCreationMailer(orgDomain, teamName, createSprintName(newSprintNumber), startDate);
const promises = [getSprintPromise, createSprint, updateTeamCurrentSprint];
return Promise.all(promises);
}).catch((error) => {
Expand All @@ -127,7 +129,6 @@ exports.updateAutoSprintStatus = function(appKey, teamId) {
result = { data: "Sprint Updated Successfully" };
console.log("Sprint final Updated Successfully");
migrateTasks(orgDomain, teamId, teamName, oldSprintNumber, newSprintNumber, orgId);
// mailer for creating new sprint.
return result;
}).catch((error) => {
result = { data: error };
Expand Down

0 comments on commit 7b3fb9e

Please sign in to comment.