[READ-ONLY] Mirror of https://github.com/flo-bit/skywatched. review movies and tv shows, based on at proto skywatched.app
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #11 from flo-bit/fix-db-fuckup

fix fuckup number 5

authored by

Florian and committed by
GitHub
(Dec 4, 2024, 2:17 PM +0100) 9208ca92 74103d9e

+5 -4
+2 -2
src/lib/Components/MovieGrid.svelte
··· 3 3 const { 4 4 movies, 5 5 class: className 6 - }: { movies: { poster_path: string; original_title: string; id: number }[]; class?: string } = 6 + }: { movies: { poster_path: string; original_title: string; id: number, movieId: number }[]; class?: string } = 7 7 $props(); 8 8 </script> 9 9 ··· 29 29 <div class="mt-2 flex justify-between"> 30 30 <div> 31 31 <h3 class="sm:text-md text-sm font-medium text-base-50"> 32 - <a href="/movie/{movie.id}"> 32 + <a href="/movie/{movie.movieId}"> 33 33 <span aria-hidden="true" class="absolute inset-0"></span> 34 34 <div class="line-clamp-2 max-w-full"> 35 35 {movie.original_title}
+1 -1
src/routes/search/+page.server.ts
··· 8 8 if (query) { 9 9 const results = await searchMovie(query); 10 10 11 - return { results, query }; 11 + return { results: results.map((result) => ({ ...result, movieId: result.id })), query }; 12 12 } 13 13 14 14 return { results: [], query };
+2 -1
src/routes/user/[username]/+page.svelte
··· 22 22 movies={data.movies.map((movie) => ({ 23 23 poster_path: movie.posterPath ?? '', 24 24 original_title: movie.originalTitle, 25 - id: movie.id 25 + id: movie.id, 26 + movieId: movie.movieId 26 27 }))} 27 28 /> 28 29 </Container>