fix(auth): remove redundant specs and fix stream query

This commit is contained in:
Karol Sójko
2022-12-06 14:12:54 +01:00
parent 05b1b8f079
commit fb81d2b926
25 changed files with 18 additions and 2030 deletions
@@ -22,7 +22,10 @@ export class MySQLUserRepository implements UserRepositoryInterface {
}
async streamAll(): Promise<ReadStream> {
return this.ormRepository.createQueryBuilder('user').stream()
return this.ormRepository
.createQueryBuilder('user')
.where('created_at < :createdAt', { createdAt: new Date().toISOString() })
.stream()
}
async streamTeam(memberEmail?: string): Promise<ReadStream> {