From 9e4c8dbc77a75c0a330747cc903920294c25d403 Mon Sep 17 00:00:00 2001 From: detherminal <76167420+detherminal@users.noreply.github.com> Date: Wed, 31 May 2023 00:46:11 +0300 Subject: [PATCH] fix: recent logs --- lib/services/debug_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/debug_service.dart b/lib/services/debug_service.dart index dadb76990..3e2e840a5 100644 --- a/lib/services/debug_service.dart +++ b/lib/services/debug_service.dart @@ -34,7 +34,7 @@ class DebugService extends ChangeNotifier { // }); } - List<Log> get recentLogs => isar.logs.where().limit(200).findAllSync(); + List<Log> get recentLogs => isar.logs.where().sortByTimestampInMillisUTCDesc().limit(100).findAllSync(); // Future<void> updateRecentLogs() async { // int totalCount = await isar.logs.count();