Skip to content

Commit

Permalink
fix token_entry query
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Sep 27, 2023
1 parent 2e3f589 commit 0545400
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/gitpod-db/src/typeorm/user-db-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ export class TypeORMUserDBImpl extends TransactionalDBImpl<UserDB> implements Us
public async deleteExpiredTokenEntries(date: string): Promise<void> {
const repo = await this.getTokenRepo();
await repo
.createQueryBuilder("te")
.createQueryBuilder()
.delete()
.from(DBTokenEntry, "te")
.where("te.expiryDate != ''")
.andWhere("te.refreshable != 1")
.andWhere("te.expiryDate <= :date", { date })
Expand Down

0 comments on commit 0545400

Please sign in to comment.