Fixes search regression.
This commit is contained in:
parent
e78c509940
commit
b30eba6859
3 changed files with 4 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ when defined(js):
|
||||||
verbatim(searchResult.postContent)
|
verbatim(searchResult.postContent)
|
||||||
|
|
||||||
proc render*(state: Search, query: string, currentUser: Option[User]): VNode =
|
proc render*(state: Search, query: string, currentUser: Option[User]): VNode =
|
||||||
if state.list.isNone() or state.query != query:
|
if state.query != query:
|
||||||
state.list = none[seq[SearchResult]]()
|
state.list = none[seq[SearchResult]]()
|
||||||
state.status = Http200
|
state.status = Http200
|
||||||
state.query = query
|
state.query = query
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ SELECT
|
||||||
person.name AS author,
|
person.name AS author,
|
||||||
person.email AS email,
|
person.email AS email,
|
||||||
strftime('%s', person.lastOnline) AS lastOnline,
|
strftime('%s', person.lastOnline) AS lastOnline,
|
||||||
|
strftime('%s', person.previousVisitAt) AS previousVisitAt,
|
||||||
person.status AS status,
|
person.status AS status,
|
||||||
person.isDeleted as person_isDeleted,
|
person.isDeleted as person_isDeleted,
|
||||||
0 AS what
|
0 AS what
|
||||||
|
|
@ -48,6 +49,7 @@ SELECT
|
||||||
person.name AS author,
|
person.name AS author,
|
||||||
person.email AS email,
|
person.email AS email,
|
||||||
strftime('%s', person.lastOnline) AS lastOnline,
|
strftime('%s', person.lastOnline) AS lastOnline,
|
||||||
|
strftime('%s', person.previousVisitAt) AS previousVisitAt,
|
||||||
person.status AS status,
|
person.status AS status,
|
||||||
person.isDeleted as person_isDeleted,
|
person.isDeleted as person_isDeleted,
|
||||||
what
|
what
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue