Created the guild.ts controller
This commit is contained in:
parent
9cd9f23265
commit
25a2b1281f
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}});
|
Loading…
x
Reference in New Issue
Block a user