diff --git a/answerwc/to_client.go b/answerwc/to_client.go index b3be8df..1e18fab 100644 --- a/answerwc/to_client.go +++ b/answerwc/to_client.go @@ -205,7 +205,7 @@ func (w *SendToClient) processAnswerWithPrivileges(ctx context.Context, quizName return true, nil } else { w.checkAndSendTaskReminders(ctx, sendTaskRemindersDeps{ - //email: account.Email, + email: account.Email, theme: quizName, config: model.QuizConfig{ Mailing: model.ResultInfo{ @@ -333,9 +333,9 @@ func (w *SendToClient) ProcessMessageToClient(quizConfig model.QuizConfig, quest 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 { return err } diff --git a/deployments/local/docker-compose.yaml b/deployments/local/docker-compose.yaml index 0adc287..2f80b77 100644 --- a/deployments/local/docker-compose.yaml +++ b/deployments/local/docker-compose.yaml @@ -1,16 +1,12 @@ -version: '3.8' - services: - redis: - image: redis:latest - ports: - - "6379:6379" + postgres: + image: postgres + restart: always environment: - - REDIS_PASSWORD=admin - - REDIS_DB=2 - command: [ "redis-server", "--requirepass", "admin", "--databases", "16", "--maxmemory", "2gb", "--maxmemory-policy", "allkeys-lru" ] - volumes: - - redis_data:/data - -volumes: - redis_data: \ No newline at end of file + POSTGRES_PASSWORD: Redalert2 + POSTGRES_USER: squiz + POSTGRES_DB: squiz + app: + image: penahub.gitlab.yandexcloud.net:5050/backend/squiz:latest + ports: + - 1488:1488