From 60654579ae2abe514401c210507f449a26921f54 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 12 May 2026 17:30:38 +0000 Subject: [PATCH] Fix reference to URI route names --- resource/communication.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resource/communication.go b/resource/communication.go index 05789fcb..73ec7b14 100644 --- a/resource/communication.go +++ b/resource/communication.go @@ -170,19 +170,19 @@ func (res *communicationR) hydrateCommunication(comm modelpublic.Communication, switch rr.Type { case platform.RelatedRecordTypeEmail: r_type = resourceTypeEmail - uri, err = res.router.IDStrToURI("email.GetByID", rr.ID) + uri, err = res.router.IDStrToURI("email.ByIDGet", rr.ID) case platform.RelatedRecordTypeReportCompliance: r_type = resourceTypeReportCompliance - uri, err = res.router.IDStrToURI("publicreport.compliance.GetByID", rr.ID) + uri, err = res.router.IDStrToURI("publicreport.compliance.ByIDGet", rr.ID) case platform.RelatedRecordTypeReportNuisance: r_type = resourceTypeReportNuisance - uri, err = res.router.IDStrToURI("publicreport.nuisance.GetByID", rr.ID) + uri, err = res.router.IDStrToURI("publicreport.nuisance.ByIDGet", rr.ID) case platform.RelatedRecordTypeReportWater: r_type = resourceTypeReportWater - uri, err = res.router.IDStrToURI("publicreport.water.GetByID", rr.ID) + uri, err = res.router.IDStrToURI("publicreport.water.ByIDGet", rr.ID) case platform.RelatedRecordTypeText: r_type = resourceTypeText - uri, err = res.router.IDStrToURI("text.GetByID", rr.ID) + uri, err = res.router.IDStrToURI("text.ByIDGet", rr.ID) default: r_type = resourceTypeUnknown err = fmt.Errorf("unrecognized related record type '%s'", rr.Type)