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

View File

@@ -235,13 +235,13 @@ public class NbStorePlugin: CAPPlugin, CAPBridgedPlugin {
let id = try call.getStringEnsure("id")
let key = try call.getStringEnsure("key")
if let blob = try await docStoragePool.getBlob(universalId: id, key: key) {
call.resolve(["blob":[
call.resolve([
"key": blob.key,
"data": blob.data,
"mime": blob.mime,
"size": blob.size,
"createdAt": blob.createdAt
]])
])
} else {
call.resolve()
}