feat: allow filtering with null (no) rating

This commit is contained in:
2023-08-20 20:13:47 +02:00
parent aeb067aadb
commit 93f359e684
12 changed files with 67 additions and 36 deletions

View File

@@ -41,6 +41,7 @@ export type GenericResource = {
meta?: {
image?: string;
author?: string;
rating?: number;
average?: string;
thumbnail?: string;
};
@@ -66,9 +67,4 @@ export type TypesenseDocument = {
image?: string;
};
export enum ResourceStatus {
COMPLETED = "completed",
NOT_COMPLETED = "not_completed",
}
export type SearchResult = SearchResponse<TypesenseDocument>;