refactor: replace skill code with skill ID across the application
- Updated skill handling to use skill IDs instead of skill codes in various components, services, and models. - Modified tests to reflect changes in skill identification. - Removed references to skill codes in favor of skill IDs for consistency and clarity. - Updated localization files to remove skill code references and adjust error messages accordingly.
This commit is contained in:
Vendored
+3
-5
@@ -142,14 +142,12 @@ func getDefaultTeamIDs() string {
|
||||
}
|
||||
|
||||
func getDefaultSkillIDs() (string, error) {
|
||||
skillItem := repositories.SkillDefinitionRepository.Take(
|
||||
skillItem := repositories.SkillDefinitionRepository.FindOne(
|
||||
sqls.DB(),
|
||||
"code = ? AND status = ?",
|
||||
skill.AfterSalesEscalationSkillCode,
|
||||
enums.StatusOk,
|
||||
sqls.NewCnd().Where("status = ?", enums.StatusOk).Desc("id"),
|
||||
)
|
||||
if skillItem == nil {
|
||||
return "", fmt.Errorf("default test skill not found: %s", skill.AfterSalesEscalationSkillCode)
|
||||
return "", fmt.Errorf("default test skill not found")
|
||||
}
|
||||
return utils.JoinInt64s([]int64{skillItem.ID}), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user