Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/main/java/com/example/inventory/data/ItemDao.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface ItemDao {
fun getAllItems(): Flow<List<Item>>

@Query("SELECT * from items WHERE id = :id")
fun getItem(id: Int): Flow<Item>
fun getItem(id: Int): Flow<Item?>

// Specify the conflict strategy as IGNORE, when the user tries to add an
// existing Item into the database Room ignores the conflict.
Expand Down