mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-10 22:41:02 +00:00
fix(server): update skill visibility on each version publish
This commit is contained in:
parent
7d8915fc7a
commit
ea75670224
1 changed files with 3 additions and 0 deletions
|
|
@ -236,6 +236,9 @@ public class SkillPublishService {
|
|||
return skillRepository.save(newSkill);
|
||||
});
|
||||
|
||||
// Update visibility to match the latest publish request
|
||||
skill.setVisibility(visibility);
|
||||
|
||||
if (skill.getStatus() == SkillStatus.ARCHIVED) {
|
||||
throw new DomainBadRequestException("error.skill.publish.archived", skillSlug);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue