test
All checks were successful
Build and Publish / Metadata (push) Successful in 9s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 1m40s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m12s

This commit is contained in:
matst80
2025-10-15 18:02:30 +02:00
parent 55d0595161
commit 9dc5bab7c5

View File

@@ -41,15 +41,12 @@ func listCartFiles(dir string) ([]CartFileInfo, error) {
continue
}
name := e.Name()
var id uint64
var id int64
var parseErr error
parts := strings.Split(name, ".")
if len(parts) == 2 && parts[1] == "events.log" {
if len(parts) > 1 && parts[1] == "events" {
idStr := parts[0]
id, parseErr = strconv.ParseUint(idStr, 10, 64)
} else if len(parts) == 3 && parts[1] == "events" && parts[2] == "log" {
idStr := parts[0]
id, parseErr = strconv.ParseUint(idStr, 10, 64)
id, parseErr = strconv.ParseInt(idStr, 10, 64)
} else {
continue
}
@@ -62,7 +59,7 @@ func listCartFiles(dir string) ([]CartFileInfo, error) {
continue
}
out = append(out, CartFileInfo{
ID: id,
ID: uint64(id),
CartId: cart.CartId(id),
Path: p,
Size: info.Size(),