Merge pull request #2281 from gradido/left-join-with-deleted-email-contacts

fix: Include Deleted Email Contacts in User Search
This commit is contained in:
Moriz Wahl 2022-10-24 16:32:40 +02:00 committed by GitHub
commit 8ca4de8005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,8 +28,8 @@ export class UserRepository extends Repository<DbUser> {
): Promise<[DbUser[], number]> {
const query = this.createQueryBuilder('user')
.select(select)
.leftJoinAndSelect('user.emailContact', 'emailContact')
.withDeleted()
.leftJoinAndSelect('user.emailContact', 'emailContact')
.where(
new Brackets((qb) => {
qb.where(