fix setting mime after import + cleanup of old search code

This commit is contained in:
zadam
2020-08-18 22:20:47 +02:00
parent 03d7ee9abb
commit 53c361945b
10 changed files with 13 additions and 371 deletions

View File

@@ -176,7 +176,7 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain
* @returns {Promise<NoteShort[]>}
*/
this.searchForNotes = async searchString => {
const noteIds = await this.runOnServer(async searchString => {
const noteIds = await this.runOnBackend(async searchString => {
const notes = await api.searchForNotes(searchString);
return notes.map(note => note.noteId);