Order by KeyPackageEvent

This commit is contained in:
Kgothatso Ngako
2026-07-07 00:05:22 +02:00
parent 925c83582b
commit f8ba151095

View File

@@ -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