Pretty all the things I missed

My laptop didn't have lefthook running. Oops.
This commit is contained in:
Eli Ribble 2026-03-27 14:06:50 -07:00
parent f60bde7fd9
commit 4bbfbdb9e6
No known key found for this signature in database
30 changed files with 490 additions and 487 deletions

View file

@ -6,6 +6,7 @@ import (
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
)
type ServiceRequestSummary struct {
Date time.Time
Location string

View file

@ -228,7 +228,7 @@ func SignalList(ctx context.Context, user User, limit int) ([]*Signal, error) {
row.Pool = p
row.Report = nil
} else if row.Report.ID != 0 {
report, ok := report_map[row.Report.ID]
report, ok := report_map[row.Report.ID]
if !ok {
return nil, fmt.Errorf("failed to get report %d for %d", row.Report.ID, row.ID)
}

View file

@ -73,7 +73,7 @@ func newUser(ctx context.Context, org Organization, user *models.User) User {
func CreateUser(ctx context.Context, username string, name string, password_hash string) (*User, error) {
o_setter := models.OrganizationSetter{
IsCatchall: omit.From(false),
Name: omit.From(fmt.Sprintf("%s's organization", username)),
Name: omit.From(fmt.Sprintf("%s's organization", username)),
}
o, err := models.Organizations.Insert(&o_setter).One(ctx, db.PGInstance.BobDB)
if err != nil {