Update backend/src/graphql/resolver/AdminResolver.ts

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
Wolfgang Huß 2022-06-01 10:01:20 +02:00 committed by GitHub
parent 56873b6f18
commit d6556cd02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,7 @@ export class AdminResolver {
if (!filters || !filters.withExpired) where.validUntil = MoreThan(new Date())
const [transactionLinks, count] = await dbTransactionLink.findAndCount({
where,
withDeleted: !filters ? false : filters.withDeleted,
withDeleted: filters ? filters.withDeleted : false,
order: {
createdAt: order,
},