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()
|
||||
}
|
||||
|
||||
fun getUpdate(): ApiResponse<List<Update>>? {
|
||||
return api.updates().execute().body()
|
||||
fun getUpdate(channel: String): ApiResponse<List<Update>>? {
|
||||
return api.updates(channel).execute().body()
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ class UpdateWorker(val context: Context, val params: WorkerParameters) : Worker(
|
||||
fun runNow(app: App) {
|
||||
try {
|
||||
val api = SzkolnyApi(app)
|
||||
val response = api.getUpdate()
|
||||
val response = api.getUpdate("beta")
|
||||
if (response?.success != true)
|
||||
return
|
||||
val updates = response.data
|
||||
|
Loading…
x
Reference in New Issue
Block a user