mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
Add helper itemMetadataLogString static func for logging in NextcloudFilesDatabaseManager
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
2ca2609e0c
commit
b532b96937
1 changed files with 4 additions and 0 deletions
|
@ -74,6 +74,10 @@ class NextcloudFilesDatabaseManager : NSObject {
|
||||||
return realm
|
return realm
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static func itemMetadataLogString(_ metadata: NextcloudItemMetadataTable) -> String {
|
||||||
|
return "ocID: \(metadata.ocId), etag: \(metadata.etag), fileName: \(metadata.fileName)"
|
||||||
|
}
|
||||||
|
|
||||||
func anyItemMetadatasForAccount(_ account: String) -> Bool {
|
func anyItemMetadatasForAccount(_ account: String) -> Bool {
|
||||||
return !ncDatabase().objects(NextcloudItemMetadataTable.self).filter("account == %@", account).isEmpty
|
return !ncDatabase().objects(NextcloudItemMetadataTable.self).filter("account == %@", account).isEmpty
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue