diff --git a/backend/src/typeorm/repository/Transaction.ts b/backend/src/typeorm/repository/Transaction.ts index 943ad1081..affed5f42 100644 --- a/backend/src/typeorm/repository/Transaction.ts +++ b/backend/src/typeorm/repository/Transaction.ts @@ -1,5 +1,4 @@ import { EntityRepository, Repository } from '@dbTools/typeorm' -import { Contribution } from '@entity/Contribution' import { Transaction } from '@entity/Transaction' import { Order } from '@enum/Order' import { TransactionTypeId } from '@enum/TransactionTypeId' @@ -41,17 +40,4 @@ export class TransactionRepository extends Repository { .offset(offset) .getManyAndCount() } - - findLastForUser(userId: number): Promise { - return this.createQueryBuilder('userTransaction') - .leftJoinAndMapOne( - 'userTransaction.contribution', - Contribution, - 'c', - 'userTransaction.id = c.transactionId', - ) - .where('userTransaction.userId = :userId', { userId }) - .orderBy('userTransaction.balanceDate', 'DESC') - .getOne() - } }