Refactor
This commit is contained in:
parent
bb94d868ba
commit
97f32ebac6
4
main.go
4
main.go
@ -57,8 +57,8 @@ func main() {
|
|||||||
// os.Exit(1)
|
// os.Exit(1)
|
||||||
//}
|
//}
|
||||||
} else {
|
} else {
|
||||||
webhookLocalUrl := "/webhook/" + os.Getenv("MONOBANK_WEBHOOK_SECRET")
|
webhookLocalUrl := fmt.Sprintf("/webhook/%s", os.Getenv("MONOBANK_WEBHOOK_SECRET"))
|
||||||
webhookUrl := `https://` + os.Getenv("MONOBANK_WEBHOOK_DOMAIN") + webhookLocalUrl
|
webhookUrl := fmt.Sprintf("https://%s/webhook/%s", os.Getenv("MONOBANK_WEBHOOK_DOMAIN"), os.Getenv("MONOBANK_WEBHOOK_SECRET"))
|
||||||
|
|
||||||
// register monobank webhook
|
// register monobank webhook
|
||||||
monobankClientConf := monobank.NewConfiguration()
|
monobankClientConf := monobank.NewConfiguration()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user