mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	added date_modified to options as preparation for options syncing
This commit is contained in:
		| @@ -44,7 +44,9 @@ async function getOption(optName) { | ||||
| } | ||||
|  | ||||
| async function setOption(optName, optValue) { | ||||
|     await execute("UPDATE options SET opt_value = ? WHERE opt_name = ?", [optValue, optName]); | ||||
|     const now = utils.nowTimestamp(); | ||||
|  | ||||
|     await execute("UPDATE options SET opt_value = ?, date_modified = ? WHERE opt_name = ?", [optValue, now, optName]); | ||||
| } | ||||
|  | ||||
| async function getSingleResult(query, params = []) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user