Created the guild.ts controller
This commit is contained in:
7
controller/guild.ts
Normal file
7
controller/guild.ts
Normal file
@@ -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}});
|
Reference in New Issue
Block a user