fix type
This commit is contained in:
parent
fbf657012c
commit
af0cda92c5
@ -59,15 +59,15 @@ var toClientWhatsAppTemplate string
|
||||
|
||||
func NewSendToClient(deps DepsSendToClient, errChan chan<- error) *SendToClient {
|
||||
toClientTemplates := map[model.LeadTargetType]string{
|
||||
model.LeadTargetEmail: toClientTemplate,
|
||||
model.LeadTargetTg: toClientTgTemplate,
|
||||
model.LeadTargetTgWhatsapp: toClientWhatsAppTemplate,
|
||||
model.LeadTargetEmail: toClientTemplate,
|
||||
model.LeadTargetTg: toClientTgTemplate,
|
||||
model.LeadTargetWhatsapp: toClientWhatsAppTemplate,
|
||||
}
|
||||
|
||||
toReminderTemplates := map[model.LeadTargetType]string{
|
||||
model.LeadTargetEmail: reminderTemplate,
|
||||
model.LeadTargetTg: reminderTgTemplate,
|
||||
model.LeadTargetTgWhatsapp: reminderWhatsAppTemplate,
|
||||
model.LeadTargetEmail: reminderTemplate,
|
||||
model.LeadTargetTg: reminderTgTemplate,
|
||||
model.LeadTargetWhatsapp: reminderWhatsAppTemplate,
|
||||
}
|
||||
|
||||
return &SendToClient{
|
||||
|
2
go.mod
2
go.mod
@ -17,7 +17,7 @@ require (
|
||||
go.uber.org/zap v1.27.0
|
||||
golang.org/x/net v0.23.0
|
||||
gopkg.in/tucnak/telebot.v2 v2.5.0
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240624132638-0bf45822a652
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240716141835-bc61e20eba19
|
||||
penahub.gitlab.yandexcloud.net/pena-services/customer v1.0.1-0.20240608222239-5c78187bf014
|
||||
)
|
||||
|
||||
|
2
go.sum
2
go.sum
@ -183,5 +183,7 @@ penahub.gitlab.yandexcloud.net/backend/penahub_common v0.0.0-20240607202348-efe5
|
||||
penahub.gitlab.yandexcloud.net/backend/penahub_common v0.0.0-20240607202348-efe5f2bf3e8c/go.mod h1:+bPxq2wfW5S1gd+83vZYmHm33AE7nEBfznWS8AM1TKE=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240624132638-0bf45822a652 h1:QI+VRYE25xtYbUgaxOBL9sj0WIKacPXlD6YD7TNO5SM=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240624132638-0bf45822a652/go.mod h1:uOuosXduBzd2WbLH6TDZO7ME7ZextulA662oZ6OsoB0=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240716141835-bc61e20eba19 h1:UXIPj/mvS5g1WniklSY57PcUP4CYbXEow5nGCJdyLJ0=
|
||||
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240716141835-bc61e20eba19/go.mod h1:uOuosXduBzd2WbLH6TDZO7ME7ZextulA662oZ6OsoB0=
|
||||
penahub.gitlab.yandexcloud.net/pena-services/customer v1.0.1-0.20240608222239-5c78187bf014 h1:ziG55nv824SGFZ02AfagKQC5D4ODirGXnpVPQTL6YFA=
|
||||
penahub.gitlab.yandexcloud.net/pena-services/customer v1.0.1-0.20240608222239-5c78187bf014/go.mod h1:hIMkN5Xe01vAVaX22QWsGD87Oi93IfX1hJGqxy0oJbE=
|
||||
|
Loading…
Reference in New Issue
Block a user