Pretty all the things I missed
My laptop didn't have lefthook running. Oops.
This commit is contained in:
parent
f60bde7fd9
commit
4bbfbdb9e6
30 changed files with 490 additions and 487 deletions
|
|
@ -6,6 +6,7 @@ import (
|
|||
|
||||
nhttp "github.com/Gleipnir-Technology/nidus-sync/http"
|
||||
)
|
||||
|
||||
type ServiceRequestSummary struct {
|
||||
Date time.Time
|
||||
Location string
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue