Fix bug loading 0 proclamations
This commit is contained in:
@@ -302,7 +302,10 @@ func (p *ScrollerPage) loadProclamations() error {
|
||||
|
||||
// 1. Query only Selected AND Available records directly from the DB
|
||||
var proclamations []db.Proclamation
|
||||
err := p.Base.Context.DbPtr.Where("selected = ? AND available = ?", true, true).Find(&proclamations).Error
|
||||
// TODO: Uncomment and replace this line once available is added
|
||||
// err := p.Base.Context.DbPtr.Where("selected = ? AND available = ?", true, true).Find(&proclamations).Error
|
||||
|
||||
err := p.Base.Context.DbPtr.Where("selected = ?", true).Find(&proclamations).Error
|
||||
|
||||
if err != nil {
|
||||
logger.Error("Database query failed: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user