mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	removed sourceId where it's not necessary (stored in CLS instead)
This commit is contained in:
		| @@ -62,13 +62,12 @@ async function getTree(req) { | ||||
|  | ||||
| async function setPrefix(req) { | ||||
|     const branchId = req.params.branchId; | ||||
|     const sourceId = req.headers.source_id; | ||||
|     const prefix = utils.isEmptyOrWhitespace(req.body.prefix) ? null : req.body.prefix; | ||||
|  | ||||
|     await sql.doInTransaction(async () => { | ||||
|         await sql.execute("UPDATE branches SET prefix = ?, dateModified = ? WHERE branchId = ?", [prefix, utils.nowDate(), branchId]); | ||||
|  | ||||
|         await sync_table.addBranchSync(branchId, sourceId); | ||||
|         await sync_table.addBranchSync(branchId); | ||||
|     }); | ||||
|  | ||||
|     return {}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user