Adds todayProvider to memory lane
This commit is contained in:
@@ -19,9 +19,10 @@ class MemoryService {
|
||||
|
||||
MemoryService(this._apiService);
|
||||
|
||||
Future<List<Memory>?> getMemoryLane() async {
|
||||
Future<List<Memory>?> getMemoryLane({DateTime? now}) async {
|
||||
try {
|
||||
final now = DateTime.now();
|
||||
// Use the provided DateTime or default to now
|
||||
now = now ?? DateTime.now();
|
||||
final beginningOfDate = DateTime(now.year, now.month, now.day);
|
||||
final data = await _apiService.assetApi.getMemoryLane(
|
||||
beginningOfDate,
|
||||
|
||||
Reference in New Issue
Block a user