Fixed required comment for additional approver
This commit is contained in:
parent
9e41c9edd7
commit
668ba393ba
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue