From 788e19e358f0adcafd5810b73ebfbad4b05f51a9 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 28 Sep 2024 14:45:35 +0700 Subject: [PATCH] update method call from repository --- mobile/lib/services/download.service.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mobile/lib/services/download.service.dart b/mobile/lib/services/download.service.dart index b81f1fac68054..80b0c1570ca14 100644 --- a/mobile/lib/services/download.service.dart +++ b/mobile/lib/services/download.service.dart @@ -86,11 +86,7 @@ class DownloadService { Future saveLivePhoto( Task task, ) async { - final records = await FileDownloader().database.allRecordsWithStatus( - TaskStatus.complete, - group: downloadGroupLivePhoto, - ); - + final records = await _downloadRepository.getLiveVideoTasks(); if (records.length != 2) { return false; }