Upgraded to latest aero version
This commit is contained in:
@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
// DeleteKitsu marks an anime for deletion.
|
||||
func DeleteKitsu(ctx *aero.Context) string {
|
||||
func DeleteKitsu(ctx aero.Context) error {
|
||||
id := ctx.Get("id")
|
||||
|
||||
// Is the user allowed to delete?
|
||||
@ -39,5 +39,5 @@ func DeleteKitsu(ctx *aero.Context) string {
|
||||
// Save in database
|
||||
arn.DB.Set("IDList", "deleted kitsu anime", &deletedKitsuAnime)
|
||||
|
||||
return ""
|
||||
return nil
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
// Kitsu anime import.
|
||||
func Kitsu(ctx *aero.Context) string {
|
||||
func Kitsu(ctx aero.Context) error {
|
||||
id := ctx.Get("id")
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
@ -45,5 +45,5 @@ func Kitsu(ctx *aero.Context) string {
|
||||
// Log
|
||||
fmt.Println(color.GreenString("✔"), anime.ID, anime.Title.Canonical)
|
||||
|
||||
return ""
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user