Make organization.name not-nullable, consolidate org in dash context

This commit is contained in:
Eli Ribble 2026-01-14 21:49:12 +00:00
parent 4f0b73c769
commit a4c0e367a8
No known key found for this signature in database
13 changed files with 118 additions and 50 deletions

View file

@ -42,7 +42,6 @@ type ContextDashboard struct {
IsSyncOngoing bool
LastSync *time.Time
MapData ComponentMap
Org string
RecentRequests []ServiceRequestSummary
User User
}
@ -249,7 +248,6 @@ func dashboard(ctx context.Context, w http.ResponseWriter, user *models.User) {
MapData: ComponentMap{
MapboxToken: config.MapboxToken,
},
Org: org.Name.MustGet(),
RecentRequests: requests,
User: userContent,
}