Skip to content

Commit

Permalink
fix: spacing in query
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Nov 27, 2020
1 parent c9cb0a1 commit 81123fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/DatabaseQueries/PingsQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class PingsQueries {
.append(SQL` WHERE type_notifications.type = ${String(type)}
AND MOD(IFNULL(channels.guild_id, 0) >> 22, ${this.bot.shardTotal}) in (${this.bot.shards})
AND settings.setting = "platform" AND (settings.val = ${platform || 'pc'} OR settings.val IS NULL) `)
.append(items && items.length ? SQL`AND item_notifications.item IN (${items})
.append(items && items.length ? SQL` AND item_notifications.item IN (${items})
AND item_notifications.channel_id = settings.channel_id;` : SQL`;`);
return (await this.query(query))[0];
} catch (e) {
Expand Down

0 comments on commit 81123fa

Please sign in to comment.