mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
mobile: fix core api usage
This commit is contained in:
@@ -54,10 +54,10 @@ export async function setupDatabase(password) {
|
|||||||
storage: Storage,
|
storage: Storage,
|
||||||
eventsource: Platform.OS === "ios" ? EventSource : AndroidEventSource,
|
eventsource: Platform.OS === "ios" ? EventSource : AndroidEventSource,
|
||||||
fs: filesystem,
|
fs: filesystem,
|
||||||
compressor: {
|
compressor: () => ({
|
||||||
compress: Gzip.deflate,
|
compress: Gzip.deflate,
|
||||||
decompress: Gzip.inflate
|
decompress: Gzip.inflate
|
||||||
},
|
}),
|
||||||
batchSize: 100,
|
batchSize: 100,
|
||||||
sqliteOptions: {
|
sqliteOptions: {
|
||||||
dialect: (name) => ({
|
dialect: (name) => ({
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ export default async function downloadAttachment(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
let filename = getFileNameWithExtension(
|
let filename = await getFileNameWithExtension(
|
||||||
attachment.filename,
|
attachment.filename,
|
||||||
attachment.mimeType
|
attachment.mimeType
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user