diff --git a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomReleaseServiceImpl.kt b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomReleaseServiceImpl.kt index ae094d386bf..075971793bb 100644 --- a/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomReleaseServiceImpl.kt +++ b/src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/service/atom/impl/AtomReleaseServiceImpl.kt @@ -414,7 +414,7 @@ abstract class AtomReleaseServiceImpl @Autowired constructor() : AtomReleaseServ if (validateAtomVersionResult.isNotOk()) { return Result(status = validateAtomVersionResult.status, message = validateAtomVersionResult.message ?: "") } - var atomId = if (atomPackageSourceType == PackageSourceTypeEnum.UPLOAD) { + val atomId = if (atomPackageSourceType == PackageSourceTypeEnum.UPLOAD) { redisOperation.get("$ATOM_UPLOAD_ID_KEY_PREFIX:$atomCode:$version") ?: throw ErrorCodeException(errorCode = USER_UPLOAD_PACKAGE_INVALID) } else { @@ -1260,7 +1260,7 @@ abstract class AtomReleaseServiceImpl @Autowired constructor() : AtomReleaseServ } } - private fun updateAtomVersionInfo( + protected fun updateAtomVersionInfo( userId: String, projectCode: String, newVersionFlag: Boolean,