diff --git a/component/multi_sync.go b/component/multi_sync.go index ae632dd8..e41a6e1a 100644 --- a/component/multi_sync.go +++ b/component/multi_sync.go @@ -1056,8 +1056,8 @@ func (c *multiSyncComponentImpl) createLocalSkill(ctx context.Context, m *types. Category: tag.Category, Group: tag.Group, BuiltIn: tag.BuiltIn, - I18nKey: tag.ShowName, // ShowName: tag.ShowName, - Scope: types.CodeTagScope, + I18nKey: tag.I18nKey, + Scope: types.SkillTagScope, } t, err := c.tagStore.FindOrCreate(ctx, dbTag) if err != nil { diff --git a/component/multi_sync_test.go b/component/multi_sync_test.go index 599a560c..993708dc 100644 --- a/component/multi_sync_test.go +++ b/component/multi_sync_test.go @@ -270,7 +270,7 @@ func TestMultiSyncComponent_SyncAsClient(t *testing.T) { mc.mocks.stores.RepoMock().EXPECT().UpdateOrCreateRepo(ctx, *dbrepo).Return(dbrepo, nil) dbrepo.ID = 3 mc.mocks.stores.TagMock().EXPECT().FindOrCreate(ctx, database.Tag{ - Name: "t3", Scope: types.CodeTagScope, + Name: "t3", Scope: types.SkillTagScope, }).Return( &database.Tag{Name: "t3", ID: 13}, nil, )