Return c.JSON

This commit is contained in:
ekzyis 2024-07-12 22:15:48 +02:00
parent 2b8ab8b51c
commit 2ec59e96eb
1 changed files with 1 additions and 2 deletions

View File

@ -78,8 +78,7 @@ func HandleLnAuthCallback(sc context.Context) echo.HandlerFunc {
)
bail := func(code int, reason string) error {
c.JSON(code, map[string]string{"status": "ERROR", "reason": reason})
return nil
return c.JSON(code, map[string]string{"status": "ERROR", "reason": reason})
}
if err = c.Bind(&query); err != nil {