Skip to content

Commit c65b361

Browse files
committed
FIX PUT BUG
1 parent 66ddb8c commit c65b361

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

YTKKeyValueStore/YTKKeyValueStore/YTKTable.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public struct YTKTable{
8181

8282
if let filter = self.query?.filter(ID == set.objectId).limit(1){
8383
if filter.isEmpty{
84-
return filter.insert(ID <- set.objectId , JSON <- jsonString! , CREATEDTIME <- NSDate())
84+
return self.query?.insert(ID <- set.objectId , JSON <- jsonString! , CREATEDTIME <- NSDate())
8585
}else{
8686
return filter.update(JSON <- jsonString! , CREATEDTIME <- NSDate() )
8787
}

0 commit comments

Comments
 (0)