🐛 Fix creators center won't get post in realm
This commit is contained in:
parent
3a0daab641
commit
a1c94919f7
@ -64,8 +64,6 @@ func listOwnPost(c *fiber.Ctx) error {
|
|||||||
|
|
||||||
if realmId > 0 {
|
if realmId > 0 {
|
||||||
tx = tx.Where(&models.Post{RealmID: lo.ToPtr(uint(realmId))})
|
tx = tx.Where(&models.Post{RealmID: lo.ToPtr(uint(realmId))})
|
||||||
} else {
|
|
||||||
tx = tx.Where("realm_id IS NULL")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(c.Query("category")) > 0 {
|
if len(c.Query("category")) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user