diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-20 16:35:27 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-20 16:35:27 -0400 |
commit | b795a6e51b9ff69ed958f985908f81aff73022dc (patch) | |
tree | 37b51353f6be564586fb0b4aae8692429497608d /src/lib/extensions | |
parent | b228c3b222f37ceaa888f926811e6cfadf33e24a (diff) | |
download | tanzanite-b795a6e51b9ff69ed958f985908f81aff73022dc.tar.gz tanzanite-b795a6e51b9ff69ed958f985908f81aff73022dc.tar.bz2 tanzanite-b795a6e51b9ff69ed958f985908f81aff73022dc.zip |
fixed caching
Diffstat (limited to 'src/lib/extensions')
-rw-r--r-- | src/lib/extensions/discord.js/BushGuild.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/extensions/discord.js/BushGuild.ts b/src/lib/extensions/discord.js/BushGuild.ts index e5eff21..9b528c6 100644 --- a/src/lib/extensions/discord.js/BushGuild.ts +++ b/src/lib/extensions/discord.js/BushGuild.ts @@ -18,8 +18,7 @@ export class BushGuild extends Guild { public async setSetting<K extends keyof GuildModel>(setting: K, value: GuildDB[K]): Promise<GuildDB> { const row = (await GuildDB.findByPk(this.id)) ?? GuildDB.build({ id: this.id }); row[setting] = value; - //@ts-ignore: idk why it thinks it doesn't exist - this.client.cache.guilds.set(this.id, row.dataValues) + this.client.cache.guilds.set(this.id, row.toJSON() as GuildDB) return await row.save(); } |