Rename defaultValue filter to casting
This commit is contained in:
parent
656914f8dc
commit
53b8a1c245
|
@ -174,7 +174,7 @@ $collections = [
|
|||
'required' => false,
|
||||
'default' => null,
|
||||
'array' => false,
|
||||
'filters' => ['defaultValue'],
|
||||
'filters' => ['casting'],
|
||||
],
|
||||
[
|
||||
'$id' => 'signed',
|
||||
|
|
|
@ -184,7 +184,7 @@ DatabaseOld::addFilter('encrypt',
|
|||
/**
|
||||
* New DB Filters
|
||||
*/
|
||||
Database::addFilter('defaultValue',
|
||||
Database::addFilter('casting',
|
||||
function($value) {
|
||||
return json_encode(['value' => $value]);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue