Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tx-techno-num
impactometre
Commits
90b3627e
Commit
90b3627e
authored
Dec 29, 2020
by
Matt Glorion
Browse files
[UPD] 🧹 massive js auto cleanup
parent
5169e14f
Changes
2
Hide whitespace changes
Inline
Side-by-side
model/classes/meeting/CategoryDamage.js
View file @
90b3627e
...
...
@@ -119,7 +119,7 @@ class CategoryDamage {
for
(
const
[,
c
]
of
this
.
components
)
{
await
c
.
computeDamage
(
payload
);
this
.
totalDamage
=
await
this
.
totalDamage
.
add
(
c
.
damage
);
}
;
}
return
Promise
.
resolve
(
this
.
totalDamage
);
}
...
...
utils/normalise.js
View file @
90b3627e
...
...
@@ -134,8 +134,8 @@ async function normaliseDamages (meetingScenarios) {
};
normalisedDamages
[
d
.
damageEndpoint
]
=
normalisedDamages
[
d
.
damageEndpoint
]
||
{};
normalisedDamages
[
d
.
damageEndpoint
][
d
.
meetingScenario
]
=
x
;
}
;
}
;
}
}
return
Promise
.
resolve
(
normalisedDamages
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment