Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper commented Nov 2, 2025

No description provided.

@jmgasper jmgasper merged commit 9fe712c into develop Nov 2, 2025
4 checks passed
if (value instanceof Date) {
return value
}
if (typeof value === 'object') {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
Using _.mapValues on an object without checking for circular references can lead to a stack overflow error if the object contains circular references. Consider adding a check to handle such cases.

result = _.filter(result, (item) => _.includes(config.MEMBER_PUBLIC_TRAITS, item.traitId))
}
return result
return helper.convertBigIntDeep(result)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The function helper.convertBigIntDeep(result) is used to convert BigInt values deeply within the result object. Ensure that this conversion is necessary for all elements within result and that helper.convertBigIntDeep handles all edge cases correctly, especially if result can contain nested structures or unexpected data types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants