3
0
Fork 0
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:
Dragory 2022-08-14 00:06:20 +03:00
parent d846231855
commit 94802a665c
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -80,7 +80,8 @@ export class ApiPermissionAssignments extends BaseRepository {
.createQueryBuilder()
.where("expires_at IS NOT NULL")
.andWhere("expires_at <= NOW()")
.delete();
.delete()
.execute();
}
async applyOwnerChange(guildId: string, newOwnerId: string) {