Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deleted data cannot sync to private database #268

Open
dong706 opened this issue Nov 7, 2022 · 0 comments
Open

deleted data cannot sync to private database #268

dong706 opened this issue Nov 7, 2022 · 0 comments

Comments

@dong706
Copy link

dong706 commented Nov 7, 2022

There is one object defind as below.After set property is_del_force =1 at my app, I went to the CloudKit database to scan the data, the is_delete_force field of this row of data has not changed, it is still 0. Whether it is after a few minutes or a few hours, I think I need your advice, thank you!


@objc dynamic var is_del_force: Int64 = 0

extension User: CKRecordConvertible {
    var isDeleted: Bool {
        return self.is_del_force == 1 ;
    }
    
    // Leave it blank if you are using private database
    // For public database users, uncomment the following code:
     static var databaseScope: CKDatabase.Scope {
         return .private
     }
}

Expected behavior

deleted data can sync to private database

Actual behavior(optional)

deleted data cannot sync to private database

Steps to reproduce the problem(optional)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant