mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-02 19:36:12 +01:00 
			
		
		
		
	always use template strings instead of string concatenation
This commit is contained in:
		@@ -9,7 +9,7 @@ function getFullAnonymizationScript() {
 | 
			
		||||
    // we want to delete all non-builtin attributes because they can contain sensitive names and values
 | 
			
		||||
// on the other hand builtin/system attrs should not contain any sensitive info
 | 
			
		||||
    const builtinAttrNames = BUILTIN_ATTRIBUTES
 | 
			
		||||
        .map(attr => "'" + attr.name + "'").join(', ');
 | 
			
		||||
        .map(attr => `'${attr.name}'`).join(', ');
 | 
			
		||||
 | 
			
		||||
    const anonymizeScript = `
 | 
			
		||||
UPDATE etapi_tokens SET tokenHash = 'API token hash value';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user