aboutsummaryrefslogtreecommitdiff
path: root/lib/utils/UpdateCache.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/UpdateCache.ts')
-rw-r--r--lib/utils/UpdateCache.ts2
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)) {