refactor: don't need device id.

This commit is contained in:
KaiserBh
2023-07-14 19:24:58 +10:00
parent 1af1ce924d
commit a036e499b1
2 changed files with 1 additions and 4 deletions

View File

@@ -25,8 +25,7 @@ class SyncYomiSyncService(
override suspend fun pushSyncData(): SyncData? {
val host = syncPreferences.syncHost().get()
val apiKey = syncPreferences.syncAPIKey().get()
val deviceId = syncPreferences.deviceID().get()
val downloadUrl = "$host/api/sync/download?deviceId=$deviceId"
val downloadUrl = "$host/api/sync/download"
val client = OkHttpClient()
val headers = Headers.Builder().add("X-API-Token", apiKey).build()