Fix allow media id of user to be null

pull/4/head
trivernis 5 years ago
parent e1fe543256
commit 781ee274b8

@ -103,10 +103,9 @@ export class User extends Model<User> {
* The id of the media that is the users profile picture
*/
@ForeignKey(() => Media)
@Column({allowNull: false})
@Column({allowNull: true})
public mediaId: number;
/**
* The media of the user
*/

Loading…
Cancel
Save