Remove nomenclature type from monthly orders approval text #176
|
|
@ -123,6 +123,8 @@ func (u *ApprovalStepDB) UpdateApprovalStepDB(ctx context.Context, tx pgx.Tx, pa
|
|||
return nil, nil, errors.New("ApprovalStep obj is nil")
|
||||
}
|
||||
|
||||
now := time.Now().UTC()
|
||||
paramsUpdate.UpdatedAt = &now
|
||||
err := dbutils.ExecuteTx(ctx, u.pool, tx, func(tx pgx.Tx) error {
|
||||
query := squirrel.StatementBuilder.PlaceholderFormat(squirrel.Dollar).Update(dbcoretablenames.TableNameApprovalSteps.ToString())
|
||||
query = dbutils.AddNonNullFieldsToQueryUpdate(query, *paramsUpdate)
|
||||
|
|
|
|||
|
|
@ -409,7 +409,7 @@ func (h *Handler) handleDecision(
|
|||
}
|
||||
notifier := NewNotifier(h.ipc, topic)
|
||||
collected := h.getCollectedFromApproval(ctx, approval)
|
||||
now := time.Now()
|
||||
now := time.Now().UTC()
|
||||
|
||||
// 🚀 Вспомогательная функция: сохранить решение/комментарий в общую таблицу комментариев
|
||||
saveCommentToApproval := func(commentText string) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue