mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix elopage buys not using repository but entity
This commit is contained in:
parent
6601d0ec4a
commit
ee94c655ef
@ -1,8 +1,6 @@
|
|||||||
import { getCustomRepository } from '@dbTools/typeorm'
|
import { LoginElopageBuys } from '@entity/LoginElopageBuys'
|
||||||
import { LoginElopageBuysRepository } from '../typeorm/repository/LoginElopageBuys'
|
|
||||||
|
|
||||||
export async function hasElopageBuys(email: string): Promise<boolean> {
|
export async function hasElopageBuys(email: string): Promise<boolean> {
|
||||||
const loginElopageBuysRepository = getCustomRepository(LoginElopageBuysRepository)
|
const elopageBuyCount = await LoginElopageBuys.count({ payerEmail: email })
|
||||||
const elopageBuyCount = await loginElopageBuysRepository.count({ payerEmail: email })
|
|
||||||
return elopageBuyCount > 0
|
return elopageBuyCount > 0
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user