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

dashboard: work on guild access page

This commit is contained in:
Dragory 2020-05-23 17:30:52 +03:00
parent 27f0046d50
commit c1f63fc5f4
6 changed files with 138 additions and 18 deletions

View file

@ -15,6 +15,14 @@ export class ApiPermissionAssignments extends BaseRepository {
this.apiPermissions = getRepository(ApiPermissionAssignment);
}
getByGuildId(guildId) {
return this.apiPermissions.find({
where: {
guild_id: guildId,
},
});
}
getByUserId(userId) {
return this.apiPermissions.find({
where: {