fix errors on insertion to game, fix db creation of game
This commit is contained in:
@@ -23,7 +23,7 @@ type CardDeck struct {
|
||||
Sort int
|
||||
DisplayCount bool
|
||||
Stats Stats
|
||||
Ownership Ownership
|
||||
Ownership []OwnershipString
|
||||
Cards []*Card
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ func (c *CardDeck) InsertObjects(tx *sqlx.Tx) error {
|
||||
|
||||
relId := InsertId[string]{id: c.ID, fieldName: "card_deck_id"}
|
||||
InsertWithCtxParallel(group, ctx, tx, c.Stats, relId)
|
||||
InsertWithCtxParallel(group, ctx, tx, c.Ownership, relId)
|
||||
InsertSliceParallel(group, tx, c.Ownership, relId)
|
||||
InsertSliceParallel(group, tx, c.Cards, relId)
|
||||
|
||||
err := group.Wait()
|
||||
|
||||
Reference in New Issue
Block a user