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:
@@ -16,8 +16,11 @@ var newCandidateLoader = func() *candidateLoader {
|
||||
type candidateLoader struct {
|
||||
}
|
||||
|
||||
func (l *candidateLoader) findManualSkillDefinition(skillCode string) *models.SkillDefinition {
|
||||
return repositories.SkillDefinitionRepository.GetByCode(sqls.DB(), skillCode)
|
||||
func (l *candidateLoader) findManualSkillDefinition(skillDefinitionID int64) *models.SkillDefinition {
|
||||
if skillDefinitionID <= 0 {
|
||||
return nil
|
||||
}
|
||||
return repositories.SkillDefinitionRepository.Get(sqls.DB(), skillDefinitionID)
|
||||
}
|
||||
|
||||
func (l *candidateLoader) loadCandidateSkills(aiAgent models.AIAgent) []models.SkillDefinition {
|
||||
|
||||
Reference in New Issue
Block a user