updated ipbl
This commit is contained in:
parent
5d2cd581c2
commit
1765b94790
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
*.ini
|
||||
*.swp
|
||||
/test
|
||||
version.go
|
@ -1,3 +0,0 @@
|
||||
package main
|
||||
|
||||
var version = "1.0.0"
|
@ -15,7 +15,7 @@ import (
|
||||
// GetIPs ...
|
||||
func GetIPs(ctx *context.Context, config *config.Config, limit int) (apimailboxes []*api.IP, err error) {
|
||||
var ips []IP
|
||||
err = config.Db.Limit(limit).Find(&ips)
|
||||
err = config.Db.Limit(limit).Desc("created").Find(&ips)
|
||||
for _, ml := range ips {
|
||||
apimailboxes = append(apimailboxes, ml.APIFormat())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user