mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00: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 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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user