Order by KeyPackageEvent
This commit is contained in:
1 parent
925c83582b
commit
f8ba151095
1 file changed
+1
-2
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user