add fix for donate is_active condition during create donat

This commit is contained in:
harold 2025-08-13 23:55:54 +05:00
parent 2f01c1e500
commit d302522256

View File

@ -165,7 +165,7 @@ func (donatService *ServiceDonat) CreateTestDonat(
widgetID := donatService.defaultWidgetID
for _, widget := range widgets {
if amount >= widget.MinAmount && amount <= widget.MaxAmount {
if amount >= widget.MinAmount && amount <= widget.MaxAmount && widget.IsActive == true {
widgetID = widget.ID
break
}