From ee55f671bcf4a52270e8a81f055ed559403bda43 Mon Sep 17 00:00:00 2001 From: Ash Date: Mon, 16 May 2022 11:16:42 +0800 Subject: [PATCH] DB record null value --- app/src/main/java/me/ash/reader/data/dao/AccountDao.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/me/ash/reader/data/dao/AccountDao.kt b/app/src/main/java/me/ash/reader/data/dao/AccountDao.kt index 37bb4b5..67fe06c 100644 --- a/app/src/main/java/me/ash/reader/data/dao/AccountDao.kt +++ b/app/src/main/java/me/ash/reader/data/dao/AccountDao.kt @@ -18,7 +18,7 @@ interface AccountDao { WHERE id = :id """ ) - suspend fun queryById(id: Int): Account + suspend fun queryById(id: Int): Account? @Insert suspend fun insert(account: Account): Long