Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93c4656f authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

refactor: change parameter's order of SystemAppDefinitionApi.getSystemAppUpdateInfoByTag

parent a8b0271b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -56,8 +56,8 @@ interface SystemAppDefinitionApi {
    @GET(UPDATE_INFO_BY_TAG_URL_SEGMENT)
    suspend fun getSystemAppUpdateInfoByTag(
        @Path(PROJECT_ID_PLACEHOLDER) projectId: Int,
        @Path(TAG_NAME_PLACEHOLDER) gitlabTagName: String,
        @Path(RELEASE_TYPE_PLACEHOLDER) releaseType: String,
        @Path(TAG_NAME_PLACEHOLDER) gitlabTagName: String,
    ): Response<SystemAppInfo>

    @GET(LATEST_UPDATE_INFO_URL_SEGMENT)
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ class SystemAppsUpdatesRepository @Inject constructor(
                return null
            }

            systemAppDefinitionApi.getSystemAppUpdateInfoByTag(projectId, latestRelease.tagName, releaseType)
            systemAppDefinitionApi.getSystemAppUpdateInfoByTag(projectId, releaseType, latestRelease.tagName)

        } else {
            systemAppDefinitionApi.getLatestSystemAppUpdateInfo(projectId, releaseType)