1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-22 22:12:45 +01:00

Backport GameChangerReferences duplication fix from Evergreen branch

Signed-off-by: Reece Dunham <me@rdil.rocks>
This commit is contained in:
Reece Dunham 2022-11-16 10:31:22 -05:00
parent d0ff3d5f6d
commit 6b1f37f149
No known key found for this signature in database
GPG Key ID: 0D7E929D2089E040

View File

@ -129,9 +129,9 @@ contractRoutingRouter.post(
delete gameChanger.ObjectivesCategory
if (
contractData.Data.GameChangerReferences.includes(
gameChanger,
)
contractData.Data.GameChangerReferences.filter(
(value) => value.Id === gameChangerId,
).length !== 0
) {
continue
}