Skip to content

Commit

Permalink
Fix Movie Fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber committed Nov 13, 2024
1 parent 2cb0665 commit 59f4d21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/campusComponent/service/movie_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ class MovieService {
static Future<(DateTime?, List<Movie>)> fetchMovies(
bool forcedRefresh,
) async {
final start = DateTime.now();
final currentDate = DateTime.now();
GrpcClient grpcClient = getIt<GrpcClient>();
final response = await grpcClient.listMovies(
ListMoviesRequest(
oldestDateAt: Timestamp.fromDateTime(
DateTime(start.year, start.month, start.day),
currentDate,
),
),
);
return (start, response.movies);
return (currentDate, response.movies);
}
}

0 comments on commit 59f4d21

Please sign in to comment.