Skip to content

Commit

Permalink
Compare with tag_name instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Oct 24, 2021
1 parent 537ef13 commit 7b8957b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ object UpdateChecker {
val response = JSONObject(withContext(Dispatchers.IO) {
conn.inputStream.bufferedReader().readText()
})
val version = response.getString("name")
val version = response.getString("tag_name")
val published = Instant.parse(response.getString("published_at")).toEpochMilli()
app.pref.edit {
putLong(KEY_LAST_FETCHED, System.currentTimeMillis())
Expand Down

0 comments on commit 7b8957b

Please sign in to comment.