yeah
This commit is contained in:
parent
53da26e5de
commit
cd469667cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue