fix: result report email

This commit is contained in:
Samuel Tariku 2025-09-06 13:42:27 +03:00
parent 9d33625198
commit 9900113e33
2 changed files with 62 additions and 64 deletions

View File

@ -628,7 +628,7 @@ The System`,
<li><strong>%d Events Processed</strong></li> <li><strong>%d Events Processed</strong></li>
<li><strong>%d Total Bets</strong></li> <li><strong>%d Total Bets</strong></li>
</ul> </ul>
<p><strong>Next Steps:</strong><br>Some events require your attention. Please <a href="https://your-dashboard-url.example">log into the admin dashboard</a> to review pending issues.</p> <p><strong>Next Steps:</strong><br>Some events require your attention. Please <a href="https://admin.fortunebets.net">log into the admin dashboard</a> to review pending issues.</p>
<p>Best regards,<br>The System</p>`, <p>Best regards,<br>The System</p>`,
greeting, greeting,
strings.Join(partsHTML, "\n"), strings.Join(partsHTML, "\n"),
@ -639,7 +639,6 @@ The System`,
return headline, plain, html return headline, plain, html
} }
func (s *Service) SendAdminResultStatusErrorNotification( func (s *Service) SendAdminResultStatusErrorNotification(
ctx context.Context, ctx context.Context,
counts domain.ResultLog, counts domain.ResultLog,
@ -661,7 +660,6 @@ func (s *Service) SendAdminResultStatusErrorNotification(
headline, message := buildHeadlineAndMessage(counts) headline, message := buildHeadlineAndMessage(counts)
notification := &domain.Notification{ notification := &domain.Notification{
ErrorSeverity: domain.NotificationErrorSeverityHigh, ErrorSeverity: domain.NotificationErrorSeverityHigh,
DeliveryStatus: domain.DeliveryStatusPending, DeliveryStatus: domain.DeliveryStatusPending,

View File

@ -79,7 +79,7 @@ logs:
@mkdir -p logs @mkdir -p logs
db-up: | logs db-up: | logs
@mkdir -p logs @mkdir -p logs
@docker compose up -d postgres migrate mongo redis --wait migrate @docker compose up -d postgres migrate mongo redis
@docker logs fortunebet-backend-postgres-1 > logs/postgres.log 2>&1 & @docker logs fortunebet-backend-postgres-1 > logs/postgres.log 2>&1 &
.PHONY: db-down .PHONY: db-down
db-down: db-down: