mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Withdrew the debuging log entries.
This commit is contained in:
parent
bb5b70d5f6
commit
8639f15aa1
@ -24,13 +24,9 @@ export const apiGet = async (url: string): Promise<any> => {
|
|||||||
.get(url)
|
.get(url)
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
if (result.status !== 200) {
|
if (result.status !== 200) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('IN status: ' + 'HTTP Status Error ' + result.status)
|
|
||||||
throw new Error('HTTP Status Error ' + result.status)
|
throw new Error('HTTP Status Error ' + result.status)
|
||||||
}
|
}
|
||||||
if (!['success', 'warning'].includes(result.data.state)) {
|
if (!['success', 'warning'].includes(result.data.state)) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('IN state: ' + result.data.state + ' message: ' + JSON.stringify(result))
|
|
||||||
throw new Error(result.data.msg)
|
throw new Error(result.data.msg)
|
||||||
}
|
}
|
||||||
return { success: true, result: result }
|
return { success: true, result: result }
|
||||||
|
|||||||
@ -137,20 +137,6 @@ export class ErrorData extends BaseEntity {
|
|||||||
@Entity()
|
@Entity()
|
||||||
@ObjectType()
|
@ObjectType()
|
||||||
export class GetUserInfoResponse extends BaseEntity {
|
export class GetUserInfoResponse extends BaseEntity {
|
||||||
/* "state": "success",
|
|
||||||
"userData": {
|
|
||||||
"EmailVerificationCode.Register": "2718271129122",
|
|
||||||
"pubkeyhex": "131c7f68dd94b2be4c913400ff7ff4cdc03ac2bda99c2d29edcacb3b065c67e6",
|
|
||||||
"first_name": "Max",
|
|
||||||
"last_name": "Musterman",
|
|
||||||
"disabled": 0,
|
|
||||||
"email_checked": 1
|
|
||||||
},
|
|
||||||
"server": {
|
|
||||||
"loginServer.path": "http://localhost/account"
|
|
||||||
},
|
|
||||||
"errors": []
|
|
||||||
*/
|
|
||||||
@Field(() => String)
|
@Field(() => String)
|
||||||
state: string
|
state: string
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user