chore: make "users"."avatar_url" NOT NULL (#11112)

This commit is contained in:
Kayla Washburn
2023-12-11 10:09:51 -07:00
committed by GitHub
parent 3e5d292135
commit 6775a86785
10 changed files with 55 additions and 48 deletions

View File

@ -121,7 +121,7 @@ func (api *API) insightsUserActivity(rw http.ResponseWriter, r *http.Request) {
TemplateIDs: row.TemplateIDs,
UserID: row.UserID,
Username: row.Username,
AvatarURL: row.AvatarURL.String,
AvatarURL: row.AvatarURL,
Seconds: row.UsageSeconds,
})
}
@ -208,7 +208,7 @@ func (api *API) insightsUserLatency(rw http.ResponseWriter, r *http.Request) {
TemplateIDs: row.TemplateIDs,
UserID: row.UserID,
Username: row.Username,
AvatarURL: row.AvatarURL.String,
AvatarURL: row.AvatarURL,
LatencyMS: codersdk.ConnectionLatency{
P50: row.WorkspaceConnectionLatency50,
P95: row.WorkspaceConnectionLatency95,