mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
fix: fix expired api permissions not being deleted
This commit is contained in:
parent
d846231855
commit
94802a665c
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ export class ApiPermissionAssignments extends BaseRepository {
|
||||||
.createQueryBuilder()
|
.createQueryBuilder()
|
||||||
.where("expires_at IS NOT NULL")
|
.where("expires_at IS NOT NULL")
|
||||||
.andWhere("expires_at <= NOW()")
|
.andWhere("expires_at <= NOW()")
|
||||||
.delete();
|
.delete()
|
||||||
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
async applyOwnerChange(guildId: string, newOwnerId: string) {
|
async applyOwnerChange(guildId: string, newOwnerId: string) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue