Fix update check

This commit is contained in:
Cuong-Tran 2025-03-25 03:04:20 +07:00
parent 374eee18d2
commit e73622c033
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -39,7 +39,7 @@ class ReleaseServiceImpl(
override suspend fun releaseNotes(arguments: GetApplicationRelease.Arguments): List<Release> { override suspend fun releaseNotes(arguments: GetApplicationRelease.Arguments): List<Release> {
return with(json) { return with(json) {
networkService.client networkService.client
.newCall(GET("https://api.github.com/repos/${arguments.repository}/releases/latest")) .newCall(GET("https://api.github.com/repos/${arguments.repository}/releases"))
.awaitSuccess() .awaitSuccess()
.parseAs<List<GithubRelease>>() .parseAs<List<GithubRelease>>()
.mapNotNull { release -> .mapNotNull { release ->