forked from github/szkolny
[Updates] Change update channel to beta.
This commit is contained in:
parent
6cd2c23aac
commit
0fad12fea5
@ -201,7 +201,7 @@ class SzkolnyApi(val app: App) {
|
|||||||
)).execute().body()
|
)).execute().body()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getUpdate(): ApiResponse<List<Update>>? {
|
fun getUpdate(channel: String): ApiResponse<List<Update>>? {
|
||||||
return api.updates().execute().body()
|
return api.updates(channel).execute().body()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ class UpdateWorker(val context: Context, val params: WorkerParameters) : Worker(
|
|||||||
fun runNow(app: App) {
|
fun runNow(app: App) {
|
||||||
try {
|
try {
|
||||||
val api = SzkolnyApi(app)
|
val api = SzkolnyApi(app)
|
||||||
val response = api.getUpdate()
|
val response = api.getUpdate("beta")
|
||||||
if (response?.success != true)
|
if (response?.success != true)
|
||||||
return
|
return
|
||||||
val updates = response.data
|
val updates = response.data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user