🐛 Trying to fix some bugs
This commit is contained in:
parent
badae3aa0d
commit
59e1bf1ddf
@ -42,6 +42,9 @@ func getUserInBatch(c *fiber.Ctx) error {
|
||||
if len(nameList) > 0 {
|
||||
tx = tx.Or("name IN ?", nameList)
|
||||
}
|
||||
if len(nameList) == 0 && len(numericList) == 0 {
|
||||
return c.JSON([]models.Account{})
|
||||
}
|
||||
|
||||
var accounts []models.Account
|
||||
if err := tx.
|
||||
|
Loading…
x
Reference in New Issue
Block a user