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 { LoginElopageBuysRepository } from '../typeorm/repository/LoginElopageBuys'
|
||||
import { LoginElopageBuys } from '@entity/LoginElopageBuys'
|
||||
|
||||
export async function hasElopageBuys(email: string): Promise<boolean> {
|
||||
const loginElopageBuysRepository = getCustomRepository(LoginElopageBuysRepository)
|
||||
const elopageBuyCount = await loginElopageBuysRepository.count({ payerEmail: email })
|
||||
const elopageBuyCount = await LoginElopageBuys.count({ payerEmail: email })
|
||||
return elopageBuyCount > 0
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user