From 420b5713d33377ec8cd2f5b92d7bb528b4050afe Mon Sep 17 00:00:00 2001 From: Sam Dozor Date: Fri, 1 Mar 2024 16:55:48 -0500 Subject: [PATCH] fix: remove number parsing this code is problematic and violates the mParticle schema. --- .../internal/database/services/MParticleDBManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android-core/src/main/java/com/mparticle/internal/database/services/MParticleDBManager.java b/android-core/src/main/java/com/mparticle/internal/database/services/MParticleDBManager.java index 0135b9698..20c99fc3d 100644 --- a/android-core/src/main/java/com/mparticle/internal/database/services/MParticleDBManager.java +++ b/android-core/src/main/java/com/mparticle/internal/database/services/MParticleDBManager.java @@ -530,7 +530,7 @@ public Map getUserAttributeSingles(long mpId) { for (Map.Entry stringifiedAttribute : stringifiedAttributes.entrySet()) { String key = stringifiedAttribute.getKey(); String value = stringifiedAttribute.getValue(); - typedAttributes.put(key, MPUtility.toNumberOrString(value)); + typedAttributes.put(key, value); } return typedAttributes; }