mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-29 17:26:38 +01:00 
			
		
		
		
	fix searchForNote backend API method
This commit is contained in:
		| @@ -121,11 +121,12 @@ function BackendScriptApi(currentNote, apiParams) { | |||||||
|      * "#dateModified =* MONTH AND #log". See full documentation for all options at: https://github.com/zadam/trilium/wiki/Search |      * "#dateModified =* MONTH AND #log". See full documentation for all options at: https://github.com/zadam/trilium/wiki/Search | ||||||
|      * |      * | ||||||
|      * @method |      * @method | ||||||
|      * @param {string} searchString |      * @param {string} query | ||||||
|  |      * @param {Object} [searchParams] | ||||||
|      * @returns {Note|null} |      * @returns {Note|null} | ||||||
|      */ |      */ | ||||||
|     this.searchForNote = searchString => { |     this.searchForNote = (query, searchParams = {}) => { | ||||||
|         const notes = searchService.searchNoteEntities(searchString); |         const notes = this.searchForNotes(query, searchParams); | ||||||
|  |  | ||||||
|         return notes.length > 0 ? notes[0] : null; |         return notes.length > 0 ? notes[0] : null; | ||||||
|     }; |     }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user