From f8ba15109520c4e60a62173f23adde14d285f6a6 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Tue, 7 Jul 2026 00:05:22 +0200 Subject: [PATCH] Order by KeyPackageEvent --- .../at/torch/compose/database/dao/MarmotKeyPackageDao.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/composeApp/src/commonMain/kotlin/at/torch/compose/database/dao/MarmotKeyPackageDao.kt b/composeApp/src/commonMain/kotlin/at/torch/compose/database/dao/MarmotKeyPackageDao.kt index 6a87e453..3e2aa56b 100644 --- a/composeApp/src/commonMain/kotlin/at/torch/compose/database/dao/MarmotKeyPackageDao.kt +++ b/composeApp/src/commonMain/kotlin/at/torch/compose/database/dao/MarmotKeyPackageDao.kt @@ -9,8 +9,7 @@ import fr.acinq.bitcoin.PublicKey @Dao interface MarmotKeyPackageDao { - - @Query("SELECT * FROM MarmotKeyPackage WHERE publicKey = :publicKey") + @Query("SELECT * FROM MarmotKeyPackage WHERE publicKey = :publicKey ORDER BY createAt DESC") suspend fun getMarmotKeyPackageForPublicKey(publicKey: HexKey): MarmotKeyPackage? @Upsert