need upd common!!!
This commit is contained in:
parent
770a5b7ac2
commit
c5153ab5b6
@ -205,7 +205,7 @@ func (w *SendToClient) processAnswerWithPrivileges(ctx context.Context, quizName
|
|||||||
return true, nil
|
return true, nil
|
||||||
} else {
|
} else {
|
||||||
w.checkAndSendTaskReminders(ctx, sendTaskRemindersDeps{
|
w.checkAndSendTaskReminders(ctx, sendTaskRemindersDeps{
|
||||||
//email: account.Email,
|
email: account.Email,
|
||||||
theme: quizName,
|
theme: quizName,
|
||||||
config: model.QuizConfig{
|
config: model.QuizConfig{
|
||||||
Mailing: model.ResultInfo{
|
Mailing: model.ResultInfo{
|
||||||
@ -333,9 +333,9 @@ func (w *SendToClient) ProcessMessageToClient(quizConfig model.QuizConfig, quest
|
|||||||
|
|
||||||
data.AnswerTime = formattedTime
|
data.AnswerTime = formattedTime
|
||||||
|
|
||||||
//fmt.Println("SUBJECT", theme, account.Email)
|
fmt.Println("SUBJECT", theme, account.Email)
|
||||||
|
|
||||||
err := w.deps.MailClient.SendMailWithAttachment("account.Email", theme, toClientTemplate, data, nil)
|
err := w.deps.MailClient.SendMailWithAttachment(account.Email, theme, toClientTemplate, data, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
redis:
|
postgres:
|
||||||
image: redis:latest
|
image: postgres
|
||||||
ports:
|
restart: always
|
||||||
- "6379:6379"
|
|
||||||
environment:
|
environment:
|
||||||
- REDIS_PASSWORD=admin
|
POSTGRES_PASSWORD: Redalert2
|
||||||
- REDIS_DB=2
|
POSTGRES_USER: squiz
|
||||||
command: [ "redis-server", "--requirepass", "admin", "--databases", "16", "--maxmemory", "2gb", "--maxmemory-policy", "allkeys-lru" ]
|
POSTGRES_DB: squiz
|
||||||
volumes:
|
app:
|
||||||
- redis_data:/data
|
image: penahub.gitlab.yandexcloud.net:5050/backend/squiz:latest
|
||||||
|
ports:
|
||||||
volumes:
|
- 1488:1488
|
||||||
redis_data:
|
|
||||||
|
Loading…
Reference in New Issue
Block a user