[Updates] Change update channel to beta.

This commit is contained in:
Kuba Szczodrzyński 2020-01-19 21:39:28 +01:00
parent 6cd2c23aac
commit 0fad12fea5
2 changed files with 3 additions and 3 deletions

View File

@ -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()
} }
} }

View File

@ -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