mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
get things working again
This commit is contained in:
parent
2ea309643c
commit
4d57487f8f
@ -2,9 +2,6 @@
|
|||||||
|
|
||||||
import { AuthChecker } from 'type-graphql'
|
import { AuthChecker } from 'type-graphql'
|
||||||
|
|
||||||
import CONFIG from '../../config'
|
|
||||||
import { apiGet } from '../../apis/HttpRequest'
|
|
||||||
|
|
||||||
import decode from '../../jwt/decode'
|
import decode from '../../jwt/decode'
|
||||||
import encode from '../../jwt/encode'
|
import encode from '../../jwt/encode'
|
||||||
|
|
||||||
|
|||||||
@ -10,15 +10,17 @@ export class User {
|
|||||||
@PrimaryGeneratedColumn()
|
@PrimaryGeneratedColumn()
|
||||||
id: number
|
id: number
|
||||||
*/
|
*/
|
||||||
constructor(json: any) {
|
constructor(json?: any) {
|
||||||
this.email = json.email
|
if (json) {
|
||||||
this.firstName = json.first_name
|
this.email = json.email
|
||||||
this.lastName = json.last_name
|
this.firstName = json.first_name
|
||||||
this.username = json.username
|
this.lastName = json.last_name
|
||||||
this.description = json.description
|
this.username = json.username
|
||||||
this.pubkey = json.public_hex
|
this.description = json.description
|
||||||
this.language = json.language
|
this.pubkey = json.public_hex
|
||||||
this.publisherId = json.publisher_id
|
this.language = json.language
|
||||||
|
this.publisherId = json.publisher_id
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Field(() => String)
|
@Field(() => String)
|
||||||
|
|||||||
@ -9,6 +9,9 @@ export class LoginUserBackup extends BaseEntity {
|
|||||||
@Column({ type: 'text', name: 'passphrase', nullable: false })
|
@Column({ type: 'text', name: 'passphrase', nullable: false })
|
||||||
passphrase: string
|
passphrase: string
|
||||||
|
|
||||||
|
@Column({ name: 'user_id', nullable: false })
|
||||||
|
userId: number
|
||||||
|
|
||||||
@Column({ name: 'mnemonic_type', default: -1 })
|
@Column({ name: 'mnemonic_type', default: -1 })
|
||||||
mnemonicType: number
|
mnemonicType: number
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user