diff --git a/app/src/main/java/com/example/inventory/data/ItemDao.kt b/app/src/main/java/com/example/inventory/data/ItemDao.kt index 22b14c72..cb08ce17 100644 --- a/app/src/main/java/com/example/inventory/data/ItemDao.kt +++ b/app/src/main/java/com/example/inventory/data/ItemDao.kt @@ -34,7 +34,7 @@ interface ItemDao { fun getAllItems(): Flow> @Query("SELECT * from items WHERE id = :id") - fun getItem(id: Int): Flow + fun getItem(id: Int): Flow // Specify the conflict strategy as IGNORE, when the user tries to add an // existing Item into the database Room ignores the conflict.