mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
make description field explicitly nullable and corrected graphql model accordingly
This commit is contained in:
parent
1f979ffb90
commit
723afb6402
@ -40,8 +40,8 @@ export class User {
|
||||
@Field(() => String)
|
||||
username: string
|
||||
|
||||
@Field(() => String)
|
||||
description: string
|
||||
@Field(() => String, { nullable: true })
|
||||
description?: string
|
||||
|
||||
@Field(() => String)
|
||||
pubkey: string
|
||||
|
||||
@ -19,7 +19,7 @@ export class LoginUser extends BaseEntity {
|
||||
@Column({ length: 255, default: '' })
|
||||
username: string
|
||||
|
||||
@Column({ default: '' })
|
||||
@Column({ default: '', nullable: true })
|
||||
description: string
|
||||
|
||||
@Column({ type: 'bigint', default: 0, unsigned: true })
|
||||
|
||||
@ -19,7 +19,7 @@ export class LoginUser extends BaseEntity {
|
||||
@Column({ length: 255, default: '', collation: 'utf8mb4_unicode_ci' })
|
||||
username: string
|
||||
|
||||
@Column({ default: '', collation: 'utf8mb4_unicode_ci' })
|
||||
@Column({ default: '', collation: 'utf8mb4_unicode_ci', nullable: true })
|
||||
description: string
|
||||
|
||||
@Column({ type: 'bigint', default: 0, unsigned: true })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user