Make it possible to handle null reporter_contact_consent

This commit is contained in:
Eli Ribble 2026-03-11 23:00:06 +00:00
parent e63646c9a1
commit e09c412139
No known key found for this signature in database

View file

@ -40,7 +40,7 @@ type Water struct {
Owner types.Contact `db:"owner" json:"owner"`
PublicID string `db:"public_id" json:"public_id"`
Reporter types.Contact `db:"reporter" json:"reporter"`
ReporterContactConsent bool `db:"reporter_contact_consent" json:"reporter_contact_consent"`
ReporterContactConsent *bool `db:"reporter_contact_consent" json:"reporter_contact_consent"`
Status string `db:"status" json:"status"`
}