feature/backoffice #6

Merged
mats merged 24 commits from feature/backoffice into main 2025-10-16 09:46:07 +02:00
7 changed files with 6 additions and 5 deletions
Showing only changes of commit c61adb3b9d - Show all commits
+5 -4
View File
@@ -41,12 +41,13 @@ func listCartFiles(dir string) ([]CartFileInfo, error) {
continue
}
name := e.Name()
var id int64
var idStr string
var id uint64
var parseErr error
parts := strings.Split(name, ".")
if len(parts) > 1 && parts[1] == "events" {
idStr := parts[0]
id, parseErr = strconv.ParseInt(idStr, 10, 64)
idStr = parts[0]
id, parseErr = strconv.ParseUint(idStr, 10, 64)
} else {
continue
}
@@ -59,7 +60,7 @@ func listCartFiles(dir string) ([]CartFileInfo, error) {
continue
}
out = append(out, CartFileInfo{
ID: uint64(id),
ID: idStr,
CartId: cart.CartId(id),
Size: info.Size(),
Modified: info.ModTime(),
+1 -1
View File
@@ -17,7 +17,7 @@ import (
)
type CartFileInfo struct {
ID uint64 `json:"id"`
ID string `json:"id"`
CartId cart.CartId `json:"cartId"`
Size int64 `json:"size"`
Modified time.Time `json:"modified"`
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.