mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Save advanced search terms in search history too
This commit is contained in:
parent
d4f32f7bdd
commit
bccb949fce
2 changed files with 5 additions and 3 deletions
|
|
@ -906,9 +906,9 @@ export const searchResolver = authorized<
|
|||
}
|
||||
})
|
||||
|
||||
// save in search history
|
||||
if (searchQuery.query) {
|
||||
await saveSearchHistory(claims.uid, searchQuery.query)
|
||||
// save query, including advanced search terms, in search history
|
||||
if (params.query) {
|
||||
await saveSearchHistory(claims.uid, params.query)
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -12,4 +12,6 @@ CREATE TABLE omnivore.search_history (
|
|||
unique (user_id, term)
|
||||
);
|
||||
|
||||
GRANT SELECT, INSERT, UPDATE, DELETE ON omnivore.search_history TO omnivore_user;
|
||||
|
||||
COMMIT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue