diff options
Diffstat (limited to '')
-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) }) } |