Added button to add companies
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
package companies
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
@ -19,10 +17,6 @@ func Get(ctx *aero.Context) string {
|
||||
return !company.IsDraft
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return ctx.Error(http.StatusInternalServerError, "Error fetching companies", err)
|
||||
}
|
||||
|
||||
if len(companies) > maxEntries {
|
||||
companies = companies[:maxEntries]
|
||||
}
|
||||
|
Reference in New Issue
Block a user