aboutsummaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-04 19:32:39 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-04 19:32:39 -0400
commitb5793611d57a734d75b6a0845c441f33d144a5c0 (patch)
tree1deb4dc4cd0e1e575b1bc32ed0ae50085c7a3ecf /src/tasks
parent41c532de2c7786b2bb8ba5d78f092fed3cc6b63a (diff)
downloadtanzanite-b5793611d57a734d75b6a0845c441f33d144a5c0.tar.gz
tanzanite-b5793611d57a734d75b6a0845c441f33d144a5c0.tar.bz2
tanzanite-b5793611d57a734d75b6a0845c441f33d144a5c0.zip
misc
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/updateCache.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tasks/updateCache.ts b/src/tasks/updateCache.ts
index 95ceca1..910088f 100644
--- a/src/tasks/updateCache.ts
+++ b/src/tasks/updateCache.ts
@@ -13,13 +13,13 @@ export class UpdateCacheTask extends BushTask {
}
public override async exec(): Promise<void> {
await UpdateCacheTask.updateGlobalCache(client);
- await UpdateCacheTask.updateGuildCache(client);
+ await UpdateCacheTask.#updateGuildCache(client);
void client.logger.verbose(`UpdateCache`, `Updated cache.`);
}
public static async init(client: BushClient): Promise<void> {
await UpdateCacheTask.updateGlobalCache(client);
- await UpdateCacheTask.updateGuildCache(client);
+ await UpdateCacheTask.#updateGuildCache(client);
}
private static async updateGlobalCache(client: BushClient): Promise<void> {
@@ -41,7 +41,7 @@ export class UpdateCacheTask extends BushTask {
}
}
- private static async updateGuildCache(client: BushClient): Promise<void> {
+ static async #updateGuildCache(client: BushClient): Promise<void> {
const rows = await Guild.findAll();
for (const row of rows) {
client.cache.guilds.set(row.id, row.toJSON() as Guild);