Skip to content

Commit

Permalink
✨ (AccountKit): Ignore non-updatable fields in RootAccount
Browse files Browse the repository at this point in the history
  • Loading branch information
macteuts committed Dec 18, 2024
1 parent 1aafe83 commit 2522d7c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public class RootAccountManager {

public func updateRootAccount(rootAccount: inout RootAccount) {
rootAccount.lastEditedAt = nil
self.dbOps.update(data: rootAccount, in: .rootAccounts)
let ignoredFields: [String] = ["root_owner_uid", "uuid", "created_at"]
self.dbOps.update(data: rootAccount, in: .rootAccounts, ignoringFields: ignoredFields)
.sink(
receiveCompletion: { [weak self] completion in
if case let .failure(error) = completion {
Expand Down

0 comments on commit 2522d7c

Please sign in to comment.