From 313b2af6cf0da57e3a01451b1214c6d7d1652c02 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Thu, 30 May 2024 23:38:14 +0530 Subject: [PATCH] Make user avatar field nullable. --- models/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/models.go b/models/models.go index 88bdf70f9..3e7f6c69d 100644 --- a/models/models.go +++ b/models/models.go @@ -158,7 +158,7 @@ type User struct { Name string `db:"name" json:"name"` Type string `db:"type" json:"type"` Status string `db:"status" json:"status"` - Avatar string `db:"-" json:"avatar"` + Avatar null.String `db:"-" json:"avatar"` Permissions map[string]struct{} `db:"-" json:"-"` LoggedInAt null.Time `db:"loggedin_at" json:"loggedin_at"`