becca conversion WIP

This commit is contained in:
zadam
2021-05-02 19:59:16 +02:00
parent 77eac8f764
commit 273d4e0052
23 changed files with 136 additions and 116 deletions

View File

@@ -6,6 +6,7 @@ const repository = require('../../services/repository');
const log = require('../../services/log');
const utils = require('../../services/utils');
const cls = require('../../services/cls');
const becca = require("../../services/becca/becca");
function getAutocomplete(req) {
const query = req.query.query.trim();
@@ -41,7 +42,7 @@ function getRecentNotes(activeNoteId) {
params.push('%' + hoistedNoteId + '%');
}
const recentNotes = repository.getEntities(`
const recentNotes = becca.getRecentNotesFromQuery(`
SELECT
recent_notes.*
FROM