This commit is contained in:
Essem 2021-08-09 10:48:43 -05:00
parent 53da26e5de
commit cd469667cb
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -76,7 +76,7 @@ exports.addGuild = async (guild) => {
exports.fixGuild = async (guild) => {
const guildDB = await connection.query("SELECT exists(SELECT 1 FROM guilds WHERE guild_id = $1)", [guild.id]);
if (!guildDB.rows[0]) {
if (!guildDB.rows[0].exists) {
logger.log(`Registering guild database entry for guild ${guild.id}...`);
return await this.addGuild(guild);
}