feat: update default skill to AfterSalesEscalation and adjust related service logic

This commit is contained in:
mlogclub
2026-04-14 17:43:58 +08:00
parent f8a3c03213
commit 2369a5a9a1
3 changed files with 53 additions and 21 deletions
+2 -2
View File
@@ -140,11 +140,11 @@ func getDefaultSkillIDs() (string, error) {
skillItem := repositories.SkillDefinitionRepository.Take(
sqls.DB(),
"code = ? AND status = ?",
skill.TestGreetingSkillCode,
skill.AfterSalesEscalationSkillCode,
enums.StatusOk,
)
if skillItem == nil {
return "", fmt.Errorf("default test skill not found: %s", skill.TestGreetingSkillCode)
return "", fmt.Errorf("default test skill not found: %s", skill.AfterSalesEscalationSkillCode)
}
return utils.JoinInt64s([]int64{skillItem.ID}), nil
}