Skip to content

Commit

Permalink
fix: extra filter on role fetch from db
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Aug 11, 2018
1 parent 56e4990 commit f95f3d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/DatabaseQueries/PrivateRoomQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class PrivateRoomQueries {
return guild.roles.has(String(parsed));
}
return undefined;
}).map((role) => {
}).filter(role => role).map((role) => {
const parsed = JSON.parse(role);
if (typeof parsed === 'object') {
const joinable = new JoinableRole(guild.roles.get(parsed.id));
Expand Down

0 comments on commit f95f3d9

Please sign in to comment.