mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Remove unused method.
This commit is contained in:
parent
2caa0ad4c9
commit
3ba591637c
@ -1,5 +1,4 @@
|
|||||||
import { EntityRepository, Repository } from '@dbTools/typeorm'
|
import { EntityRepository, Repository } from '@dbTools/typeorm'
|
||||||
import { Contribution } from '@entity/Contribution'
|
|
||||||
import { Transaction } from '@entity/Transaction'
|
import { Transaction } from '@entity/Transaction'
|
||||||
import { Order } from '@enum/Order'
|
import { Order } from '@enum/Order'
|
||||||
import { TransactionTypeId } from '@enum/TransactionTypeId'
|
import { TransactionTypeId } from '@enum/TransactionTypeId'
|
||||||
@ -41,17 +40,4 @@ export class TransactionRepository extends Repository<Transaction> {
|
|||||||
.offset(offset)
|
.offset(offset)
|
||||||
.getManyAndCount()
|
.getManyAndCount()
|
||||||
}
|
}
|
||||||
|
|
||||||
findLastForUser(userId: number): Promise<Transaction | undefined> {
|
|
||||||
return this.createQueryBuilder('userTransaction')
|
|
||||||
.leftJoinAndMapOne(
|
|
||||||
'userTransaction.contribution',
|
|
||||||
Contribution,
|
|
||||||
'c',
|
|
||||||
'userTransaction.id = c.transactionId',
|
|
||||||
)
|
|
||||||
.where('userTransaction.userId = :userId', { userId })
|
|
||||||
.orderBy('userTransaction.balanceDate', 'DESC')
|
|
||||||
.getOne()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user