Skip to content

Commit 2c97e1c

Browse files
committed
Add comment
1 parent a1b3609 commit 2c97e1c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

mflix/client/app/lib/api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,6 @@ export async function vectorSearchMovies(searchParams: {
725725
genres: item.genres || [],
726726
directors: item.directors || [],
727727
cast: item.cast || [],
728-
// Preserve the vector search score for display in UI
729728
score: item.score,
730729
// Add default values for fields not included in VectorSearchResult
731730
fullplot: undefined,

mflix/client/app/types/movie.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
/**
77
* Movie interface for type safety
8-
* Matches the Movie type from the Express backend
8+
* Matches the Movie type from the backend
99
*/
1010
export interface Movie {
1111
_id: string;
@@ -51,13 +51,13 @@ export interface Movie {
5151
};
5252
metacritic?: number;
5353
type?: string;
54-
/** Vector search score (only present in vector search results) */
54+
// Vector search score (only present in vector search results)
5555
score?: number;
5656
}
5757

5858
/**
5959
* API Response interface for the movies endpoint
60-
* Matches the SuccessResponse type from the Express backend
60+
* Matches the SuccessResponse type from the backend
6161
*/
6262
export interface MoviesApiResponse {
6363
success: boolean;

0 commit comments

Comments
 (0)