Skip to content

Commit 0545400

Browse files
committed
fix token_entry query
1 parent 2e3f589 commit 0545400

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/gitpod-db/src/typeorm/user-db-impl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ export class TypeORMUserDBImpl extends TransactionalDBImpl<UserDB> implements Us
295295
public async deleteExpiredTokenEntries(date: string): Promise<void> {
296296
const repo = await this.getTokenRepo();
297297
await repo
298-
.createQueryBuilder("te")
298+
.createQueryBuilder()
299299
.delete()
300+
.from(DBTokenEntry, "te")
300301
.where("te.expiryDate != ''")
301302
.andWhere("te.refreshable != 1")
302303
.andWhere("te.expiryDate <= :date", { date })

0 commit comments

Comments
 (0)