feat (api): migrate to UUIDs. Not fully debugged, may contain bugs

This commit is contained in:
2025-08-18 16:05:30 +03:00
parent 7ff759947a
commit 2666b76b44
9 changed files with 306 additions and 121 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ import (
"sync/atomic"
"time"
"github.com/google/uuid"
"gorm.io/gorm"
)
@@ -63,7 +64,7 @@ func (a *App) Run() error {
log.Printf("Failed add book to transaction: %v", tx.Error)
return
}
if bookID > 0 {
if bookID != uuid.Nil {
addedBooks++
}
}