diff options
author | Julien Dessaux | 2025-02-22 13:35:17 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-02-22 13:35:17 +0100 |
commit | 6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719 (patch) | |
tree | c2e5afc41acdf42cd4a43a324c80bd35ad714261 /pkg/webui/states.go | |
parent | chore(webui): refactored state creation page and route (diff) | |
download | tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.tar.gz tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.tar.bz2 tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.zip |
Diffstat (limited to 'pkg/webui/states.go')
-rw-r--r-- | pkg/webui/states.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/webui/states.go b/pkg/webui/states.go index 85303fe..c68b2c9 100644 --- a/pkg/webui/states.go +++ b/pkg/webui/states.go @@ -7,7 +7,6 @@ import ( "net/http" "net/url" "path" - "strconv" "git.adyxax.org/adyxax/tfstated/pkg/database" "git.adyxax.org/adyxax/tfstated/pkg/model" @@ -87,7 +86,7 @@ func handleStatesPOST(db *database.DB) http.Handler { }) return } - destination := path.Join("/version", strconv.Itoa(version.Id)) + destination := path.Join("/version", version.Id.String()) http.Redirect(w, r, destination, http.StatusFound) }) } |