mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 09:21:24 +08:00
fix(ios): incorrect return of getBlob binding in ios (#9995)
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user