Skip to content

Commit

Permalink
Merge pull request #1264 from bcgov/dev-rook-RQ-FOIMOD-3551
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
richard-aot authored Jan 8, 2025
2 parents ef741a7 + 2cff2c4 commit 0b4b72d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion computingservices/OpenInfoServices/lib/db/dbservices.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func UpdateOIRecordState(db *sql.DB, foiflowapi string, foiministryrequestid int
// Update request state in FOIMinistryRequests
// endpoint
section := "oistatusid"
endpoint := fmt.Sprintf("%s/foirequests/%d/ministryrequest/%d/section/%s", foiflowapi, foirequestid, foiministryrequestid, section)
endpoint := fmt.Sprintf("%s/api/foirequests/%d/ministryrequest/%d/section/%s", foiflowapi, foirequestid, foiministryrequestid, section)
fmt.Println(endpoint)

// payload
Expand Down
2 changes: 1 addition & 1 deletion computingservices/OpenInfoServices/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ func main() {
for _, item := range records {
err = dbservice.UpdateOIRecordState(db, foiflowapi, item.Foiministryrequestid, item.Foirequestid, openstatus_sitemap, openstatus_sitemap_message, item.Sitemap_pages, oistatusid)
if err != nil {
log.Fatalf("%v", err)
log.Fatalf("failed to update OI state: %v", err)
return
}
}
Expand Down

0 comments on commit 0b4b72d

Please sign in to comment.