diff --git a/packages/kanao-schema/src/Schema/member.ts b/packages/kanao-schema/src/Schema/member.ts index cf3c5323..38f7e541 100644 --- a/packages/kanao-schema/src/Schema/member.ts +++ b/packages/kanao-schema/src/Schema/member.ts @@ -1,7 +1,7 @@ import { pgTable, integer, text, boolean } from "drizzle-orm/pg-core"; export const members = pgTable("members", { - id: text("id").notNull(), + id: text("id").primaryKey(), guildId: text("guild_id").notNull(), nick: text("nick"), diff --git a/services/kanao-cache/src/config.ts b/services/kanao-cache/src/config.ts index 3e307204..a25af9cb 100644 --- a/services/kanao-cache/src/config.ts +++ b/services/kanao-cache/src/config.ts @@ -10,7 +10,7 @@ export const amqp = process.env.AMQP_HOST ?? process.env.AMQP_URL ?? "amqp://loc export const clientId = process.env.CLIENT_ID ?? Buffer.from(discordToken.split(".")[0], "base64").toString(); export const production = process.env.NODE_ENV === "production"; export const databaseUrl = process.env.DATABASE_GATEWAY_URL ?? process.env.DATABASE_URL!; -export const databaseConnectionLimit = Number(process.env.DATABASE_CONNECTION_LIMIT ?? 15); +export const databaseConnectionLimit = Number(process.env.DATABASE_CONNECTION_LIMIT ?? 10); export const stateMembers = process.env.STATE_MEMBER === "true"; export const stateUsers = process.env.STATE_USER === "true";