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

View File

@ -14,7 +14,5 @@ class SyncPreferences(
fun deviceName() = preferenceStore.getString("device_name", android.os.Build.MANUFACTURER + android.os.Build.PRODUCT)
fun deviceID() = preferenceStore.getInt("device_id", 0)
fun syncService() = preferenceStore.getInt("sync_service", 0)
}