cloudroam
2025-04-01 1831c2a6304496729fc16af624c37e299beae83e
app/src/main/java/com/example/firstapp/ui/dashboard/DashboardViewModel.kt
@@ -39,4 +39,10 @@
    fun insert(code: Code) = viewModelScope.launch {
        repository.insert(code)
    }
    fun getCurrentWeekStats(date: Long) =
        repository.getCurrentWeekStats(date).asLiveData()
    fun getCurrentYearStats(date: Long) =
        repository.getCurrentYearStats(date).asLiveData()
}