Fixed required comment for additional approver

This commit is contained in:
romanskijdev 2026-07-14 12:27:24 +03:00
parent 9e41c9edd7
commit 668ba393ba
2 changed files with 1 additions and 3 deletions

View File

@ -580,7 +580,7 @@ func (h *Handler) handleDecision(
// ==========================================
// Запрос обязательного комментария для первого шага
if requireComment && comment == "" {
if requireComment && comment == "" && !isAdditionalApprover {
activeStep, _ := h.ipc.Database.ApprovalStep.GetActiveStepDB(ctx, approvalID)
if activeStep != nil && activeStep.StepOrder != nil && *activeStep.StepOrder == 0 {
commentKey := fmt.Sprintf("appr_approve_comment_pending:%d", telegramID)

View File

@ -34,8 +34,6 @@ func (dr *DailyReminder) scheduleLoop() {
mskLocation = time.FixedZone("MSK", 3*3600) // Fallback: UTC+3
}
dr.sendReminders()
for {
now := time.Now().In(mskLocation)