We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66ddb8c commit c65b361Copy full SHA for c65b361
YTKKeyValueStore/YTKKeyValueStore/YTKTable.swift
@@ -81,7 +81,7 @@ public struct YTKTable{
81
82
if let filter = self.query?.filter(ID == set.objectId).limit(1){
83
if filter.isEmpty{
84
- return filter.insert(ID <- set.objectId , JSON <- jsonString! , CREATEDTIME <- NSDate())
+ return self.query?.insert(ID <- set.objectId , JSON <- jsonString! , CREATEDTIME <- NSDate())
85
}else{
86
return filter.update(JSON <- jsonString! , CREATEDTIME <- NSDate() )
87
}
0 commit comments