Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fix: make primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Mar 2, 2024
1 parent 444c33e commit 1d4d276
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/kanao-schema/src/Schema/member.ts
Original file line number Diff line number Diff line change
@@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion services/kanao-cache/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 1d4d276

Please sign in to comment.