Award Checks Update (#1376)

Add active/passive check for awards and update the handler to pass only active ones to the process when needed.
This commit is contained in:
B.Fatih KOZ
2022-01-10 23:49:50 +03:00
committed by GitHub
parent 023313c681
commit 09453becf8
6 changed files with 76 additions and 54 deletions

View File

@@ -21,6 +21,7 @@ class Award extends Model
'image_url',
'ref_model',
'ref_model_params',
'active',
];
public static $rules = [
@@ -29,6 +30,7 @@ class Award extends Model
'image_url' => 'nullable',
'ref_model' => 'required',
'ref_model_params' => 'nullable',
'active' => 'nullable',
];
/**