This commit is contained in:
Illya Marchenko 2024-04-10 23:29:33 +03:00
parent bb94d868ba
commit 97f32ebac6
Signed by: stuzer05
GPG Key ID: A6ABAAA9268F9F4F

@ -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()