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

Commit

Permalink
fix: remove guilds relation
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Feb 11, 2024
1 parent a485afe commit 49d8a77
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Schema/collections/channel.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { pgTable, text, integer, boolean } from "drizzle-orm/pg-core";
import { relations } from "drizzle-orm/relations";
import { guilds } from "./guild.js";
import { voiceStates } from "./voice.js";

export const channelsOverwrite = pgTable("channels_overwrite", {
Expand Down Expand Up @@ -40,11 +39,7 @@ export const channelsOverwriteRelation = relations(channelsOverwrite, ({ one })
})
}));

export const channelsRelation = relations(channels, ({ one, many }) => ({
guild: one(guilds, {
fields: [channels.id],
references: [guilds.id]
}),
export const channelsRelation = relations(channels, ({ many }) => ({
permission_overwrites: many(channelsOverwrite)
}));

Expand Down

0 comments on commit 49d8a77

Please sign in to comment.