Fix custom covers

This commit is contained in:
Rajarshee Chatterjee
2021-11-17 14:46:18 +05:30
parent ffe5b04360
commit e79563f2d0
+4 -4
View File
@@ -245,14 +245,14 @@ export const pickCustomNovelCover = async novelId => {
const image = await DocumentPicker.getDocumentAsync({type: 'image/*'});
if (image.type === 'success' && image.uri) {
const uri = 'file://' + image.uri;
db.transaction(tx => {
tx.executeSql(
'UPDATE novels SET novelCover = ? WHERE novelId = ?',
[image.uri, novelId],
[uri, novelId],
(txObj, res) => {},
(txObj, error) => {
// console.log('Error ', error)
},
(txObj, error) => showToast(`Error: ${error}`),
);
});