forked from akai/readest
chore: check file status before deleting cloud files (#2053)
This commit is contained in:
@@ -307,7 +307,7 @@ export abstract class BaseAppService implements AppService {
|
||||
book.coverDownloadedAt = null;
|
||||
}
|
||||
}
|
||||
if (deleteAction === 'cloud' || deleteAction === 'both') {
|
||||
if ((deleteAction === 'cloud' || deleteAction === 'both') && book.uploadedAt) {
|
||||
const fps = [getRemoteBookFilename(book), getCoverFilename(book)];
|
||||
for (const fp of fps) {
|
||||
console.log('Deleting uploaded file:', fp);
|
||||
|
||||
+1
-1
Submodule packages/foliate-js updated: afa38c1976...b5231c9fab
Reference in New Issue
Block a user