Making it so created & modified dates for integers is automatically set & filtered through the asData function, if the model contains 'created' or 'modified' columns
This commit is contained in:
parent
fa8eda53e9
commit
ed3f71b843
|
@ -90,8 +90,11 @@ extension Array where Iterator.Element == Mirror {
|
|||
if !includingNilValues {
|
||||
if child.label.isNotNil, String(describing: child.value) != "nil" {
|
||||
allChild.append(child)
|
||||
// Automatic created & modified fields:
|
||||
} else if child.label.isNotNil, child.label == "created" || child.label == "modified" {
|
||||
allChild.append(child)
|
||||
var mutableChild = child
|
||||
mutableChild.value = Int(Date().timeIntervalSince1970)
|
||||
allChild.append(mutableChild)
|
||||
}
|
||||
} else {
|
||||
if child.label.isNotNil {
|
||||
|
|
Loading…
Reference in New Issue