mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
ancestorDepth should be treated as string in ETAPI, fixes #3510
This commit is contained in:
parent
5bf9c253f2
commit
4bdb94fbaa
@ -147,14 +147,14 @@ function register(router) {
|
|||||||
|
|
||||||
function parseSearchParams(req) {
|
function parseSearchParams(req) {
|
||||||
const rawSearchParams = {
|
const rawSearchParams = {
|
||||||
'fastSearch': parseBoolean(req.query, 'fastSearch'),
|
fastSearch: parseBoolean(req.query, 'fastSearch'),
|
||||||
'includeArchivedNotes': parseBoolean(req.query, 'includeArchivedNotes'),
|
includeArchivedNotes: parseBoolean(req.query, 'includeArchivedNotes'),
|
||||||
'ancestorNoteId': req.query['ancestorNoteId'],
|
ancestorNoteId: req.query['ancestorNoteId'],
|
||||||
'ancestorDepth': parseInteger(req.query, 'ancestorDepth'),
|
ancestorDepth: req.query['ancestorDepth'], // e.g. "eq5"
|
||||||
'orderBy': req.query['orderBy'],
|
orderBy: req.query['orderBy'],
|
||||||
'orderDirection': parseOrderDirection(req.query, 'orderDirection'),
|
orderDirection: parseOrderDirection(req.query, 'orderDirection'),
|
||||||
'limit': parseInteger(req.query, 'limit'),
|
limit: parseInteger(req.query, 'limit'),
|
||||||
'debug': parseBoolean(req.query, 'debug')
|
debug: parseBoolean(req.query, 'debug')
|
||||||
};
|
};
|
||||||
|
|
||||||
const searchParams = {};
|
const searchParams = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user