summaryrefslogtreecommitdiff
path: root/pkg/webui/states.go
diff options
context:
space:
mode:
authorJulien Dessaux2025-02-22 13:35:17 +0100
committerJulien Dessaux2025-02-22 13:35:17 +0100
commit6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719 (patch)
treec2e5afc41acdf42cd4a43a324c80bd35ad714261 /pkg/webui/states.go
parentchore(webui): refactored state creation page and route (diff)
downloadtfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.tar.gz
tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.tar.bz2
tfstated-6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719.zip
chore(tfstated): change database state id and version id formats to uuidv7HEADmain
Diffstat (limited to 'pkg/webui/states.go')
-rw-r--r--pkg/webui/states.go3
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)
})
}