Skip to content

Commit

Permalink
【PAC】feat:新增代码库详情页 #8118
Browse files Browse the repository at this point in the history
删除代码库时重置代码库别名
  • Loading branch information
mingshewhe committed Nov 11, 2023
1 parent f4e3828 commit 4aa8e26
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import com.tencent.devops.common.api.exception.PermissionForbiddenException
import com.tencent.devops.common.api.model.SQLPage
import com.tencent.devops.common.api.pojo.Result
import com.tencent.devops.common.api.util.DHUtil
import com.tencent.devops.common.api.util.DateTimeUtil
import com.tencent.devops.common.api.util.HashUtil
import com.tencent.devops.common.api.util.MessageUtil
import com.tencent.devops.common.api.util.timestamp
Expand Down Expand Up @@ -858,7 +859,7 @@ class RepositoryService @Autowired constructor(
}

deleteResource(projectId, repositoryId)
val deleteTime = org.joda.time.LocalDateTime.now().toString("yyMMddHHmmSS")
val deleteTime = DateTimeUtil.toDateTime(LocalDateTime.now(), "yyMMddHHmmSS")
val deleteAliasName = "${record.aliasName}[$deleteTime]"
repositoryDao.delete(
dslContext = dslContext,
Expand Down

0 comments on commit 4aa8e26

Please sign in to comment.