1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00
This commit is contained in:
Laurent Cozic 2017-07-03 23:12:03 +01:00
parent c5e71a668c
commit a53ca42a92
2 changed files with 4 additions and 8 deletions

View File

@ -6,6 +6,6 @@ rm -f "$CLIENT_DIR/app/lib"
ln -s "$CLIENT_DIR/../lib" "$CLIENT_DIR/app"
cp "$CLIENT_DIR/package.json" "$CLIENT_DIR/build"
# Always keep this as the last line so that the exist
# Always keep this as the last line so that the exit
# code of build.sh is the same as the build command:
npm run build

View File

@ -36,13 +36,9 @@ class Tag extends BaseItem {
let noteIds = await this.tagNoteIds(tagId);
if (!noteIds.length) return [];
let noteIdsSql = noteIds.join('","');
noteIdsSql = '"' + noteIdsSql + '"';
let options = {
conditions: ['id IN (' + noteIdsSql + ')'],
};
return Note.search(options);
return Note.search({
conditions: ['id IN ("' + noteIds.join('","') + '")'],
});
}
static async addNote(tagId, noteId) {