make description field explicitly nullable and corrected graphql model accordingly

This commit is contained in:
Ulf Gebhardt 2022-01-19 14:44:56 +01:00
parent 1f979ffb90
commit 723afb6402
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 })

View File

@ -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 })