mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix: handle null values in User email transform (#1712)
This commit is contained in:
@@ -51,8 +51,8 @@ export class User {
|
||||
@Column({
|
||||
unique: true,
|
||||
transformer: {
|
||||
from: (value: string): string => value.toLowerCase(),
|
||||
to: (value: string): string => value.toLowerCase(),
|
||||
from: (value: string): string => (value ?? '').toLowerCase(),
|
||||
to: (value: string): string => (value ?? '').toLowerCase(),
|
||||
},
|
||||
})
|
||||
public email: string;
|
||||
|
Reference in New Issue
Block a user