mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
now in the correct file
This commit is contained in:
parent
1f99be5eec
commit
2d1a0d8c4e
@ -6,7 +6,7 @@ import CONFIG from '../../config'
|
||||
import { GdtEntryList } from '../models/GdtEntryList'
|
||||
import { GdtTransactionSessionIdInput } from '../inputs/GdtInputs'
|
||||
import { apiGet } from '../../apis/HttpRequest'
|
||||
import { User as tUser } from '../../typeorm/entity/User'
|
||||
import { User as dbUser } from '../../typeorm/entity/User'
|
||||
|
||||
@Resolver()
|
||||
export class GdtResolver {
|
||||
@ -23,7 +23,7 @@ export class GdtResolver {
|
||||
if (!result.success) throw new Error(result.data)
|
||||
|
||||
// load user
|
||||
const userEntity = await tUser.findByPubkeyHex(result.data.user.public_hex)
|
||||
const userEntity = await dbUser.findByPubkeyHex(result.data.user.public_hex)
|
||||
|
||||
const resultGDT = await apiGet(
|
||||
`${CONFIG.GDT_API_URL}/GdtEntries/listPerEmailApi/${userEntity.email}/${currentPage}/${pageSize}/${order}`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user