Withdrew the debuging log entries.

This commit is contained in:
Hannes Heine 2021-07-29 17:36:39 +02:00
parent bb5b70d5f6
commit 8639f15aa1
2 changed files with 0 additions and 18 deletions

View File

@ -24,13 +24,9 @@ export const apiGet = async (url: string): Promise<any> => {
.get(url)
.then((result) => {
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)
}
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)
}
return { success: true, result: result }

View File

@ -137,20 +137,6 @@ export class ErrorData extends BaseEntity {
@Entity()
@ObjectType()
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)
state: string