Use an 8-digit token for each car so it is easy to share.

This commit is contained in:
RallyBlock committed 2026-10-22 20:54:56 -07:00
1 parent 0224e8f395
commit b95cbefeab
6 files changed
+42 -15

No files matched your search

@@ -132,6 +132,15 @@ interface RaceDao {
@Query("SELECT * FROM cars WHERE id = :id")
suspend fun carById(id: Long): Car?
@Query("UPDATE race_nights SET pending = 1 WHERE carId = :carId")
suspend fun markNightsPending(carId: Long)
@Query("UPDATE runs SET pending = 1 WHERE nightId IN (SELECT id FROM race_nights WHERE carId = :carId)")
suspend fun markRunsPending(carId: Long)
@Query("UPDATE setup_sheets SET pending = 1 WHERE carId = :carId")
suspend fun markSheetsPending(carId: Long)
@Query("SELECT * FROM cars WHERE token = :token LIMIT 1")
suspend fun carByToken(token: String): Car?