feat: Allow filtering searches by 'source'
fix: Do not show API searches in recent list in app
This commit is contained in:
@@ -4,10 +4,16 @@ import Model from "./base/Model";
|
||||
class SearchQuery extends Model {
|
||||
static modelName = "Search";
|
||||
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* The query string, automatically truncated to 255 characters.
|
||||
*/
|
||||
query: string;
|
||||
|
||||
/**
|
||||
* Where the query originated.
|
||||
*/
|
||||
source: "api" | "app" | "slack";
|
||||
|
||||
delete = async () => {
|
||||
this.isSaving = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user