Fix warning parsing nil OrganizationID on notification page
This commit is contained in:
parent
5fc0f9fa3d
commit
47c3f7320c
1 changed files with 2 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ type SomeReport struct {
|
|||
|
||||
func (sr SomeReport) districtID(ctx context.Context) *int32 {
|
||||
type _Row struct {
|
||||
OrganizationID int32
|
||||
OrganizationID *int32
|
||||
}
|
||||
|
||||
from := sm.From("no-such-table")
|
||||
|
|
@ -61,7 +61,7 @@ func (sr SomeReport) districtID(ctx context.Context) *int32 {
|
|||
log.Warn().Err(err).Msg("Failed to query for organization_id")
|
||||
return nil
|
||||
}
|
||||
return &row.OrganizationID
|
||||
return row.OrganizationID
|
||||
}
|
||||
func (sr SomeReport) updateReporterEmail(ctx context.Context, email string) *ErrorWithCode {
|
||||
table := um.Table("so-such-table")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue