Fix NextcloudItemMetadataTable status query type

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-01-30 20:27:37 +01:00
parent 38d1b95bd2
commit 7cb49393fe
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -95,7 +95,7 @@ class NextcloudFilesDatabaseManager : NSObject {
}
func itemMetadatas(account: String, serverUrl: String, status: NextcloudItemMetadataTable.Status) -> [NextcloudItemMetadataTable] {
let metadatas = ncDatabase().objects(NextcloudItemMetadataTable.self).filter("account == %@ AND serverUrl == %@ AND status == %@", account, serverUrl, status)
let metadatas = ncDatabase().objects(NextcloudItemMetadataTable.self).filter("account == %@ AND serverUrl == %@ AND status == %@", account, serverUrl, status.rawValue)
return sortedItemMetadatas(metadatas)
}