Search on node name

This commit is contained in:
Magnus Åhall 2023-07-20 07:27:29 +02:00
parent 83336cf0fa
commit 1389225b45
4 changed files with 9 additions and 3 deletions

View file

@ -386,7 +386,10 @@ func (session Session) SearchNodes(search string) (nodes []Node, err error) {//
FROM node
WHERE
crypto_key_id IS NULL AND
content ~* $1
(
content ~* $1 OR
name ~* $1
)
ORDER BY
updated DESC
`, search)