File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5698,12 +5698,9 @@ components:
5698
5698
numberOfResources :
5699
5699
type : number
5700
5700
description : " No. of resources required."
5701
- rates :
5701
+ rate :
5702
5702
type : number
5703
5703
description : " Weekly rates"
5704
- durationWeeks :
5705
- type : number
5706
- description : " No. of weeks"
5707
5704
CalculateAmountResponse :
5708
5705
properties :
5709
5706
totalAmount :
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const { getAuditM2Muser } = require('../common/helper')
20
20
const { matchedSkills, unMatchedSkills } = require ( '../../scripts/emsi-mapping/esmi-skills-mapping' )
21
21
const Role = models . Role
22
22
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 } ) ;
24
24
25
25
const emailTemplates = _ . mapValues ( emailTemplateConfig , ( template ) => {
26
26
return {
@@ -1170,7 +1170,7 @@ suggestMembers.schema = Joi.object().keys({
1170
1170
*/
1171
1171
async function calculateAmount ( amount ) {
1172
1172
let totalAmount = 0 ;
1173
- _ . forEach ( amount , amt => totalAmount += amt . numberOfResources * amt . rate * amt . durationWeeks )
1173
+ _ . forEach ( amount , amt => totalAmount += amt . numberOfResources * amt . rate )
1174
1174
return { totalAmount } ;
1175
1175
}
1176
1176
You can’t perform that action at this time.
0 commit comments