Skip to content

Commit

Permalink
Merge pull request #104 from boostcampwm-2022/fix/runningHistorySort
Browse files Browse the repository at this point in the history
๋‚ด ์šด๋™๊ธฐ๋ก ์ตœ์‹  ์ •๋ณด๋ถ€ํ„ฐ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋„๋ก ๋ณ€๊ฒฝ
  • Loading branch information
yonghanJu authored Mar 17, 2024
2 parents 96a10bb + 23d4b30 commit 5ccd87f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ interface RunningHistoryDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun addRunningHistory(runningHistory: RunningHistoryEntity)

@Query("SELECT * FROM running_history ORDER BY started_at ASC")
@Query("SELECT * FROM running_history ORDER BY started_at DESC")
fun getRunningHistory(): Flow<List<RunningHistoryEntity>>
}

0 comments on commit 5ccd87f

Please sign in to comment.