use UUIDs now

This commit is contained in:
2025-03-07 14:53:35 -05:00
parent 235299b65d
commit 4389660f65
3 changed files with 9 additions and 3 deletions

View File

@@ -8,6 +8,8 @@ import (
"sort"
"strings"
"time"
"github.com/google/uuid"
)
type Secret struct {
@@ -163,7 +165,7 @@ func Add(userId int32, masterKey string, secret Secret) error {
return errors.New("user secrets are null")
}
secret.ID = security.RandBase58String(32)
secret.ID = uuid.New().String()
secret.Modified = time.Now()
secret.Created = time.Now()