Fix(Webhook): HostURL for generation
Some checks failed
Webhook-Everything/Webhook-Everything/pipeline/head There was a failure building this commit

This commit is contained in:
2022-05-29 00:22:21 +08:00
parent 53829a2788
commit cd2faaa02e
3 changed files with 5 additions and 2 deletions

View File

@@ -12,13 +12,14 @@ import (
type Env struct {
DB *gorm.DB
TelegramEnv *telegrampackage.Env
HostUrl string
HostURL string
}
func WebhookEverythingRoutes(db *gorm.DB, telegramEnv *telegrampackage.Env, hostURL string) chi.Router {
var env Env
env.DB = db
env.TelegramEnv = telegramEnv
env.HostURL = hostURL
// Seed random
rand.Seed(time.Now().UnixNano())