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()
|
||||
@Query(() => Number)
|
||||
// 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
|
||||
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) {
|
||||
throw new Error(resultPID.data)
|
||||
}
|
||||
return resultPID
|
||||
return resultPID.data.pid
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user