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

dashboard: work on guild access page

This commit is contained in:
Dragory 2020-05-23 17:30:52 +03:00
parent f90ee12b9f
commit e0209d3319
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
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: {