Duplicate traits are created when altering the payment method more than once for a particular user within polling duration (3 days). We noticed dynamodb has only one record, but somehow ES is receiving multiple records
Example users: taasintake1000, testsdgun
Example response:
[
{
"traitId": "onboarding_checklist",
"categoryName": "Onboarding Checklist",
"traits": {
"traitId": "onboarding_checklist",
"data": [
{
"user_payment_method": {
"date": 1633497003327,
"message": "success",
"payment_method": "wipro payroll",
"status": "completed"
}
}
]
}
},
{
"traitId": "onboarding_checklist",
"categoryName": "Onboarding Checklist",
"traits": {
"traitId": "onboarding_checklist",
"data": [
{
"user_payment_method": {
"status": "completed",
"message": "success",
"date": 1633497003327,
"payment_method": "wipro payroll"
}
}
]
}
}
]