From 25a2b1281fa85a03344d2e643e3323ba8df1db87 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 12 Nov 2023 12:02:23 +0100 Subject: [PATCH] Created the guild.ts controller --- controller/guild.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 controller/guild.ts diff --git a/controller/guild.ts b/controller/guild.ts new file mode 100644 index 0000000..2bd3722 --- /dev/null +++ b/controller/guild.ts @@ -0,0 +1,7 @@ +import {Guild} from "../models/Guild"; + +/** + * Gets a guild by its id + * @param guildId The guild id to find + */ +export const getGuildById = (guildId: number) => Guild.findOne({where: {guildId}}); \ No newline at end of file