fix(ios): incorrect return of getBlob binding in ios (#9995)

This commit is contained in:
L-Sun
2025-02-06 17:03:51 +00:00
parent 5b750bbba4
commit f309f8f3e1
@@ -235,13 +235,13 @@ public class NbStorePlugin: CAPPlugin, CAPBridgedPlugin {
let id = try call.getStringEnsure("id") let id = try call.getStringEnsure("id")
let key = try call.getStringEnsure("key") let key = try call.getStringEnsure("key")
if let blob = try await docStoragePool.getBlob(universalId: id, key: key) { if let blob = try await docStoragePool.getBlob(universalId: id, key: key) {
call.resolve(["blob":[ call.resolve([
"key": blob.key, "key": blob.key,
"data": blob.data, "data": blob.data,
"mime": blob.mime, "mime": blob.mime,
"size": blob.size, "size": blob.size,
"createdAt": blob.createdAt "createdAt": blob.createdAt
]]) ])
} else { } else {
call.resolve() call.resolve()
} }