|
@@ -3205,10 +3205,10 @@ class NCManageDatabase: NSObject {
|
|
NCCommunicationCommon.shared.writeLog("Could not write to database: \(error)")
|
|
NCCommunicationCommon.shared.writeLog("Could not write to database: \(error)")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- //MARK: -
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//MARK: -
|
|
|
|
+
|
|
extension Realm {
|
|
extension Realm {
|
|
public func safeWrite(_ block: (() throws -> Void)) throws {
|
|
public func safeWrite(_ block: (() throws -> Void)) throws {
|
|
if isInWriteTransaction {
|
|
if isInWriteTransaction {
|