camelCase builtin labels

This commit is contained in:
azivner
2018-04-02 21:56:55 -04:00
parent c6c76ba360
commit 6f567e3e10
11 changed files with 22 additions and 17 deletions

View File

@@ -33,7 +33,7 @@ async function exportNoteInner(branchId, directory, pack) {
const metadata = await getMetadata(note);
if (metadata.labels.find(label => label.name === 'exclude_from_export')) {
if (metadata.labels.find(label => label.name === 'excludeFromExport')) {
return;
}

View File

@@ -38,7 +38,7 @@ async function getTree() {
FROM
notes
LEFT JOIN labels AS hideInAutocomplete ON hideInAutocomplete.noteId = notes.noteId
AND hideInAutocomplete.name = 'hide_in_autocomplete'
AND hideInAutocomplete.name = 'hideInAutocomplete'
AND hideInAutocomplete.isDeleted = 0
WHERE
notes.isDeleted = 0`));