From e09c4121391f0ef7b81725dd0f02c80d8e76b1b4 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 11 Mar 2026 23:00:06 +0000 Subject: [PATCH] Make it possible to handle null reporter_contact_consent --- platform/publicreport/water.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/publicreport/water.go b/platform/publicreport/water.go index c971a242..6bbc6009 100644 --- a/platform/publicreport/water.go +++ b/platform/publicreport/water.go @@ -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"` }