Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e14172b

Browse files
author
Arpitkumar Chaudhari
committedAug 11, 2021
1 parent 619902e commit e14172b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
 

‎docs/swagger.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5698,12 +5698,9 @@ components:
56985698
numberOfResources:
56995699
type: number
57005700
description: "No. of resources required."
5701-
rates:
5701+
rate:
57025702
type: number
57035703
description: "Weekly rates"
5704-
durationWeeks:
5705-
type: number
5706-
description: "No. of weeks"
57075704
CalculateAmountResponse:
57085705
properties:
57095706
totalAmount:

‎src/services/TeamService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const { getAuditM2Muser } = require('../common/helper')
2020
const { matchedSkills, unMatchedSkills } = require('../../scripts/emsi-mapping/esmi-skills-mapping')
2121
const Role = models.Role
2222
const RoleSearchRequest = models.RoleSearchRequest
23-
const stripe = require("stripe")(process.env.STRIPE_SECRET_KEY);
23+
const stripe = require("stripe")(process.env.STRIPE_SECRET_KEY,{maxNetworkRetries: 5});
2424

2525
const emailTemplates = _.mapValues(emailTemplateConfig, (template) => {
2626
return {
@@ -1170,7 +1170,7 @@ suggestMembers.schema = Joi.object().keys({
11701170
*/
11711171
async function calculateAmount(amount) {
11721172
let totalAmount = 0;
1173-
_.forEach(amount, amt => totalAmount += amt.numberOfResources * amt.rate * amt.durationWeeks)
1173+
_.forEach(amount, amt => totalAmount += amt.numberOfResources * amt.rate)
11741174
return { totalAmount };
11751175
}
11761176

0 commit comments

Comments
 (0)
Please sign in to comment.