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:
parent
f90ee12b9f
commit
e0209d3319
6 changed files with 138 additions and 18 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue