diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-29 19:53:53 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-08-29 19:53:53 -0400 |
commit | 800668f3e0fec80f3ba08f115d9563324bc54045 (patch) | |
tree | 6a210bcfafbdd82382dab1dc18a7e2aca93e42de /lib/utils/UpdateCache.ts | |
parent | d941214503812267415db570f646cc69bc22664d (diff) | |
download | tanzanite-800668f3e0fec80f3ba08f115d9563324bc54045.tar.gz tanzanite-800668f3e0fec80f3ba08f115d9563324bc54045.tar.bz2 tanzanite-800668f3e0fec80f3ba08f115d9563324bc54045.zip |
deploy stuff
Diffstat (limited to 'lib/utils/UpdateCache.ts')
-rw-r--r-- | lib/utils/UpdateCache.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/UpdateCache.ts b/lib/utils/UpdateCache.ts index 2f96d9d..0e39344 100644 --- a/lib/utils/UpdateCache.ts +++ b/lib/utils/UpdateCache.ts @@ -14,7 +14,7 @@ export async function updateGlobalCache(client: Client) { } export async function updateSharedCache(client: Client) { - const row: { [x: string]: any } = ((await Shared.findByPk(0)) ?? (await Shared.create())).toJSON(); + const row: { [x: string]: any } = ((await Shared.findByPk(0)) ?? (await Shared.create({ primaryKey: 0 }))).toJSON(); for (const option in row) { if (Object.keys(client.cache.shared).includes(option)) { |