mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Add @Transaction annotation to getByKeySync
This commit is contained in:
@@ -66,6 +66,7 @@ interface ApplicationDao {
|
||||
suspend fun getByKey(key: String): ApplicationWithPermissions?
|
||||
|
||||
@Query("SELECT * FROM application WHERE `key` = :key")
|
||||
@Transaction
|
||||
fun getByKeySync(key: String): ApplicationWithPermissions?
|
||||
|
||||
@Query("SELECT * FROM application WHERE `name` = :name LIMIT 1")
|
||||
|
||||
Reference in New Issue
Block a user