typo
This commit is contained in:
@@ -33,7 +33,7 @@ class DiagnosticsViewModel @Inject constructor(
|
|||||||
fun addDiagnosticsDataToDb(data: DiagnosticsData) {
|
fun addDiagnosticsDataToDb(data: DiagnosticsData) {
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
try {
|
try {
|
||||||
when (val response = respository.addDiagnostics(data)) {
|
when (val response = repository.addDiagnostics(data)) {
|
||||||
is Response.Success -> {
|
is Response.Success -> {
|
||||||
// Log.i("Testdb", "Data uploaded to Firestore successfully")
|
// Log.i("Testdb", "Data uploaded to Firestore successfully")
|
||||||
fireBaseUpload.postValue("Success")
|
fireBaseUpload.postValue("Success")
|
||||||
@@ -56,7 +56,7 @@ class DiagnosticsViewModel @Inject constructor(
|
|||||||
|
|
||||||
fun deviceDiagnostics(deviceDiagnosticsRequest: DeviceDiagnosticsRequest) = viewModelScope.launch {
|
fun deviceDiagnostics(deviceDiagnosticsRequest: DeviceDiagnosticsRequest) = viewModelScope.launch {
|
||||||
deviceDiagnosticsResponse.postValue(Result.Loading())
|
deviceDiagnosticsResponse.postValue(Result.Loading())
|
||||||
respository.deviceDiagnostics(deviceDiagnosticsRequest).let {
|
repository.deviceDiagnostics(deviceDiagnosticsRequest).let {
|
||||||
deviceDiagnosticsResponse.postValue(it)
|
deviceDiagnosticsResponse.postValue(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user