Skip to content

Commit

Permalink
fix: wails router auto channel response (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz authored Jul 26, 2024
1 parent c7513aa commit 8a9b7d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wails/wails_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,9 @@ func (app *WailsApp) WailsRequestRouter(route string, method string, body string
}
autoChannelResponse, err := app.svc.GetAlbyOAuthSvc().RequestAutoChannel(ctx, app.svc.GetLNClient(), newAutoChannelRequest.IsPublic)
if err != nil {
return WailsRequestRouterResponse{Body: *autoChannelResponse, Error: err.Error()}
return WailsRequestRouterResponse{Body: nil, Error: err.Error()}
}
res := WailsRequestRouterResponse{Error: ""}
return res
return WailsRequestRouterResponse{Body: *autoChannelResponse, Error: ""}

case "/api/alby/link-account":
linkAccountRequest := &alby.AlbyLinkAccountRequest{}
Expand Down

0 comments on commit 8a9b7d6

Please sign in to comment.