1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

fix: remove null users in filter (#7308)

This commit is contained in:
Mateusz Kwasniewski 2024-06-06 13:38:54 +02:00 committed by GitHub
parent 7df1321128
commit 6b4d9d0c1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,9 @@ export class ProjectFlagCreatorsReadModel
'users.username',
'users.email',
]);
return result.map((row) => ({
return result
.filter((row) => row.name || row.username || row.email)
.map((row) => ({
id: Number(row.id),
name: String(row.name || row.username || row.email),
}));