You've already forked joplin
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user