mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-31 13:48:20 +01:00
[API] Fix sync error in case of an internal, handled error.
This commit is contained in:
parent
43ed621879
commit
d2f14093ec
@ -27,8 +27,9 @@ class EdudziennikData(val data: DataEdudziennik, val onSuccess: () -> Unit) {
|
|||||||
onSuccess()
|
onSuccess()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
useEndpoint(data.targetEndpointIds.firstKey()) { endpointId ->
|
val id = data.targetEndpointIds.firstKey()
|
||||||
data.targetEndpointIds.remove(endpointId)
|
data.targetEndpointIds.remove(id)
|
||||||
|
useEndpoint(id) { endpointId ->
|
||||||
data.progress(data.progressStep)
|
data.progress(data.progressStep)
|
||||||
nextEndpoint(onSuccess)
|
nextEndpoint(onSuccess)
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,9 @@ class IdziennikData(val data: DataIdziennik, val onSuccess: () -> Unit) {
|
|||||||
onSuccess()
|
onSuccess()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
useEndpoint(data.targetEndpointIds.firstKey()) { endpointId ->
|
val id = data.targetEndpointIds.firstKey()
|
||||||
data.targetEndpointIds.remove(endpointId)
|
data.targetEndpointIds.remove(id)
|
||||||
|
useEndpoint(id) { endpointId ->
|
||||||
data.progress(data.progressStep)
|
data.progress(data.progressStep)
|
||||||
nextEndpoint(onSuccess)
|
nextEndpoint(onSuccess)
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,9 @@ class LibrusData(val data: DataLibrus, val onSuccess: () -> Unit) {
|
|||||||
onSuccess()
|
onSuccess()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
useEndpoint(data.targetEndpointIds.firstKey()) { endpointId ->
|
val id = data.targetEndpointIds.firstKey()
|
||||||
data.targetEndpointIds.remove(endpointId)
|
data.targetEndpointIds.remove(id)
|
||||||
|
useEndpoint(id) { endpointId ->
|
||||||
data.progress(data.progressStep)
|
data.progress(data.progressStep)
|
||||||
nextEndpoint(onSuccess)
|
nextEndpoint(onSuccess)
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,9 @@ class MobidziennikData(val data: DataMobidziennik, val onSuccess: () -> Unit) {
|
|||||||
onSuccess()
|
onSuccess()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
useEndpoint(data.targetEndpointIds.firstKey()) { endpointId ->
|
val id = data.targetEndpointIds.firstKey()
|
||||||
data.targetEndpointIds.remove(endpointId)
|
data.targetEndpointIds.remove(id)
|
||||||
|
useEndpoint(id) { endpointId ->
|
||||||
data.progress(data.progressStep)
|
data.progress(data.progressStep)
|
||||||
nextEndpoint(onSuccess)
|
nextEndpoint(onSuccess)
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,9 @@ class TemplateData(val data: DataTemplate, val onSuccess: () -> Unit) {
|
|||||||
onSuccess()
|
onSuccess()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
useEndpoint(data.targetEndpointIds.firstKey()) { endpointId ->
|
val id = data.targetEndpointIds.firstKey()
|
||||||
data.targetEndpointIds.remove(endpointId)
|
data.targetEndpointIds.remove(id)
|
||||||
|
useEndpoint(id) { endpointId ->
|
||||||
data.progress(data.progressStep)
|
data.progress(data.progressStep)
|
||||||
nextEndpoint(onSuccess)
|
nextEndpoint(onSuccess)
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,9 @@ class VulcanData(val data: DataVulcan, val onSuccess: () -> Unit) {
|
|||||||
onSuccess()
|
onSuccess()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
useEndpoint(data.targetEndpointIds.firstKey()) { endpointId ->
|
val id = data.targetEndpointIds.firstKey()
|
||||||
data.targetEndpointIds.remove(endpointId)
|
data.targetEndpointIds.remove(id)
|
||||||
|
useEndpoint(id) { endpointId ->
|
||||||
data.progress(data.progressStep)
|
data.progress(data.progressStep)
|
||||||
nextEndpoint(onSuccess)
|
nextEndpoint(onSuccess)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user