1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Auto-delete resources only after 10 days to handle some edge cases

This commit is contained in:
Laurent Cozic
2018-05-27 12:50:12 +01:00
parent ac2ec65c81
commit 3822309657
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class NoteResource extends BaseModel {
}
static async orphanResources(expiryDelay = null) {
if (expiryDelay === null) expiryDelay = 1000 * 60 * 60 * 24;
if (expiryDelay === null) expiryDelay = 1000 * 60 * 60 * 24 * 10;
const cutOffTime = Date.now() - expiryDelay;
const output = await this.modelSelectAll(`
SELECT resource_id, sum(is_associated)