mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	etapi fix misleading error message
This commit is contained in:
		| @@ -106,7 +106,7 @@ function getAndCheckAttribute(attributeId) { | ||||
| function validateAndPatch(target, source, allowedProperties) { | ||||
|     for (const key of Object.keys(source)) { | ||||
|         if (!(key in allowedProperties)) { | ||||
|             throw new EtapiError(400, "PROPERTY_NOT_ALLOWED", `Property '${key}' is not allowed for PATCH.`); | ||||
|             throw new EtapiError(400, "PROPERTY_NOT_ALLOWED", `Property '${key}' is not allowed for this method.`); | ||||
|         } | ||||
|         else { | ||||
|             for (const validator of allowedProperties[key]) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user