feat (api): migrate to UUIDs. Not fully debugged, may contain bugs
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"io"
|
||||
"mi6e4ka/yabl-api/schemas"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"golang.org/x/net/html/charset"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
@@ -66,7 +67,7 @@ func nilCheck(nilString *string) string {
|
||||
return *nilString
|
||||
}
|
||||
|
||||
func FB2toDB(tx *gorm.DB, book FB2) uint64 {
|
||||
func FB2toDB(tx *gorm.DB, book FB2) uuid.UUID {
|
||||
var genres *[]schemas.Genre
|
||||
//book.Genres = nil
|
||||
if book.Genres != nil {
|
||||
|
||||
Reference in New Issue
Block a user