From 6fd1663d8c27fbfd5adc93a3aa973f78a2eeb719 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 22 Feb 2025 13:35:17 +0100 Subject: chore(tfstated): change database state id and version id formats to uuidv7 --- pkg/webui/states.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/webui/states.go') 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) }) } -- cgit v1.2.3