|
|
@@ -49,7 +49,13 @@ const updateSurveyByProfileId = async (surveyResponses, profileId) => {
|
|
49
|
49
|
})
|
|
50
|
50
|
}
|
|
51
|
51
|
|
|
52
|
|
-const scoreSurveyByProfileId = async (profileId, maxDistance = 99, duration, presence, certifications) => {
|
|
|
52
|
+const scoreSurveyByProfileId = async (
|
|
|
53
|
+ profileId,
|
|
|
54
|
+ maxDistance = 99,
|
|
|
55
|
+ duration,
|
|
|
56
|
+ presence,
|
|
|
57
|
+ certifications,
|
|
|
58
|
+) => {
|
|
53
|
59
|
const scoreSurvey = await db.get(
|
|
54
|
60
|
`/profile/${profileId}/score?max_distance=${maxDistance}&duration=${duration}&presence=${presence}&certifications=${certifications}`,
|
|
55
|
61
|
)
|