fix(core/room): use null instead of empty parent
This commit is contained in:
parent
29a804b0fb
commit
415ce8d88f
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ interface StopDao {
|
|||
@Query("""
|
||||
SELECT * FROM Stop
|
||||
WHERE platformCode <> ""
|
||||
AND parent == ""
|
||||
AND parent IS NULL
|
||||
""")
|
||||
suspend fun getAllParentless(): List<StopEntity>
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class GtfsDataFixer(
|
|||
)
|
||||
log("datafixer", "inserting ${parentId} for ${stops.size} children")
|
||||
dao.insertAll(parent)
|
||||
database.stopDao.updateParents(stops.map { it.id }, parentId)
|
||||
dao.updateParents(stops.map { it.id }, parentId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue