Skip to content

Commit 59f4d21

Browse files
committed
Fix Movie Fetching
1 parent 2cb0665 commit 59f4d21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/campusComponent/service/movie_service.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ class MovieService {
77
static Future<(DateTime?, List<Movie>)> fetchMovies(
88
bool forcedRefresh,
99
) async {
10-
final start = DateTime.now();
10+
final currentDate = DateTime.now();
1111
GrpcClient grpcClient = getIt<GrpcClient>();
1212
final response = await grpcClient.listMovies(
1313
ListMoviesRequest(
1414
oldestDateAt: Timestamp.fromDateTime(
15-
DateTime(start.year, start.month, start.day),
15+
currentDate,
1616
),
1717
),
1818
);
19-
return (start, response.movies);
19+
return (currentDate, response.movies);
2020
}
2121
}

0 commit comments

Comments
 (0)