TODO: fix deadlock caused by SessionStore#cleanup

This commit is contained in:
Jerko Steiner 2019-08-26 09:10:27 +07:00
parent d8ab2decef
commit e2c8fca29b

View File

@ -101,6 +101,7 @@ export class SessionStore<S extends ISession> extends Store {
protected async cleanup() { protected async cleanup() {
const now = Date.now() const now = Date.now()
// FIXME causes deadlocks in tests
await this.getRepository().delete({ await this.getRepository().delete({
expiredAt: LessThan(now), expiredAt: LessThan(now),
} as any) } as any)