mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update variable names
This commit is contained in:
parent
660e1e4b68
commit
3a5aa25fec
@ -36,12 +36,12 @@ export class GdtResolver {
|
|||||||
@Authorized()
|
@Authorized()
|
||||||
@Query(() => Number)
|
@Query(() => Number)
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
async checkPid(@Arg('pid') id: number): Promise<number> {
|
async checkPid(@Arg('pid') pid: number): Promise<number> {
|
||||||
// load user
|
// load user
|
||||||
const resultPID = await apiGet(`${CONFIG.GDT_API_URL}/publishers/checkPidApi/${id}`)
|
const resultPID = await apiGet(`${CONFIG.GDT_API_URL}/publishers/checkPidApi/${pid}`)
|
||||||
if (!resultPID.success) {
|
if (!resultPID.success) {
|
||||||
throw new Error(resultPID.data)
|
throw new Error(resultPID.data)
|
||||||
}
|
}
|
||||||
return resultPID
|
return resultPID.data.pid
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user