mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
initializing card list
This commit is contained in:
parent
5866d2fd99
commit
3b7d6e72fa
@ -25,7 +25,7 @@ func GetCards(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var response []*Card
|
response := []*Card{}
|
||||||
if cardRevisionSet {
|
if cardRevisionSet {
|
||||||
var slots []store.CardSlot
|
var slots []store.CardSlot
|
||||||
if err := store.DB.Preload("Card").Where("account_id = ? AND revision > ?", account.ID, cardRevision).Find(&slots).Error; err != nil {
|
if err := store.DB.Preload("Card").Where("account_id = ? AND revision > ?", account.ID, cardRevision).Find(&slots).Error; err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user