mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix DB setup
This commit is contained in:
		| @@ -762,10 +762,12 @@ function duplicateNote(noteId, parentNoteId) { | ||||
|     }; | ||||
| } | ||||
|  | ||||
| // first cleanup kickoff 5 minutes after startup | ||||
| setTimeout(cls.wrap(eraseDeletedNotes), 5 * 60 * 1000); | ||||
| sqlInit.dbReady.then(() => { | ||||
|     // first cleanup kickoff 5 minutes after startup | ||||
|     setTimeout(cls.wrap(eraseDeletedNotes), 5 * 60 * 1000); | ||||
|  | ||||
| setInterval(cls.wrap(eraseDeletedNotes), 4 * 3600 * 1000); | ||||
|     setInterval(cls.wrap(eraseDeletedNotes), 4 * 3600 * 1000); | ||||
| }); | ||||
|  | ||||
| module.exports = { | ||||
|     createNewNote, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user