We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2dde70b + b54cbea commit 0885362Copy full SHA for 0885362
src/models/team.js
@@ -66,10 +66,13 @@ const teamAttributes = [
66
*
67
*/
68
async function resolveMemberNames(ids) {
69
+ // TODO Quick fix, we need to do proper type validation
70
+ const userIds = ids.map((i) => parseInt(i))
71
+
72
// get the display names from the database table first
- const foundUsers = await db('osm_users').whereIn('id', ids)
73
+ const foundUsers = await db('osm_users').whereIn('id', userIds)
74
const foundUserIds = foundUsers.map(prop('id'))
- const notFound = difference(ids, foundUserIds)
75
+ const notFound = difference(userIds, foundUserIds)
76
77
let usersFromOSM = []
78
if (notFound.length > 0) {
0 commit comments