Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 60eb61a

Browse files
Force metric value to be string
1 parent 47c7db8 commit 60eb61a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/ProcessorService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ async function createUserSkill (userId, skillProviderName, skillName, certifierI
150150
const existingSkill = await helper.getUbahnSingleRecord(`/users/${userId}/skills/${skill.id}`, {}, true)
151151

152152
if (!existingSkill || !existingSkill.id) {
153-
await helper.createUbahnRecord(`/users/${userId}/skills`, { certifierId, certifiedDate, metricValue, skillId: skill.id })
153+
await helper.createUbahnRecord(`/users/${userId}/skills`, { certifierId, certifiedDate, metricValue: _.toString(metricValue), skillId: skill.id })
154154
} else {
155-
await helper.updateUBahnRecord(`/users/${userId}/skills/${skill.id}`, { certifierId, certifiedDate, metricValue })
155+
await helper.updateUBahnRecord(`/users/${userId}/skills/${skill.id}`, { certifierId, certifiedDate, metricValue: _.toString(metricValue) })
156156
}
157157
}
158158

0 commit comments

Comments
 (0)