1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

First pass at linting lib dir

This commit is contained in:
Laurent Cozic
2019-07-29 15:43:53 +02:00
parent 64b7bc3d62
commit 86dc72b204
170 changed files with 4140 additions and 3119 deletions

View File

@ -2,7 +2,6 @@ const SearchEngine = require('lib/services/SearchEngine');
const Note = require('lib/models/Note');
class SearchEngineUtils {
static async notesForQuery(query, options = null) {
if (!options) options = {};
@ -19,11 +18,15 @@ class SearchEngineUtils {
idWasAutoAdded = true;
}
const previewOptions = Object.assign({}, {
order: [],
fields: fields,
conditions: ['id IN ("' + noteIds.join('","') + '")'],
}, options);
const previewOptions = Object.assign(
{},
{
order: [],
fields: fields,
conditions: ['id IN ("' + noteIds.join('","') + '")'],
},
options
);
const notes = await Note.previews(null, previewOptions);
@ -39,7 +42,6 @@ class SearchEngineUtils {
return sortedNotes;
}
}
module.exports = SearchEngineUtils;
module.exports = SearchEngineUtils;