🐛 Fix whats new didn't use db context
This commit is contained in:
parent
56def6ea2c
commit
41ebb572fa
@ -49,7 +49,7 @@ func getWhatsNew(c *fiber.Ctx) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var items []models.Event
|
var items []models.Event
|
||||||
if err := database.C.
|
if err := tx.
|
||||||
Limit(take).
|
Limit(take).
|
||||||
Order("created_at DESC").
|
Order("created_at DESC").
|
||||||
Preload("Sender").
|
Preload("Sender").
|
||||||
|
Loading…
Reference in New Issue
Block a user