3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 04:45:02 +00:00

dashboard: auth fixes, guild listing, config editing

This commit is contained in:
Dragory 2019-06-23 03:40:53 +03:00
parent 1dae3019c4
commit 7bda2b1763
14 changed files with 200 additions and 42 deletions

View file

@ -9,4 +9,13 @@ export class DashboardUsers extends BaseRepository {
super();
this.dashboardUsers = getRepository(DashboardUser);
}
getByGuildAndUserId(guildId, userId) {
return this.dashboardUsers.findOne({
where: {
guild_id: guildId,
user_id: userId,
},
});
}
}