fix: clean up admin exports and enhance skill category structure
- Removed unused export for management pages in admin index. - Added id and name properties to skills being synced from JSON, improving data integrity for skill categories.
This commit is contained in:
@@ -3,7 +3,6 @@ export * from "./overview";
|
|||||||
|
|
||||||
// Nouveaux composants de gestion
|
// Nouveaux composants de gestion
|
||||||
export * from "./layout";
|
export * from "./layout";
|
||||||
export * from "./management/pages";
|
|
||||||
|
|
||||||
// Composants réutilisables pour l'arborescence
|
// Composants réutilisables pour l'arborescence
|
||||||
export * from "./management";
|
export * from "./management";
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ async function syncSkillsToDatabase(): Promise<void> {
|
|||||||
// Insérer/mettre à jour la skill (bulkInsert gère les conflits)
|
// Insérer/mettre à jour la skill (bulkInsert gère les conflits)
|
||||||
await SkillsService.bulkInsertSkillsFromJSON([
|
await SkillsService.bulkInsertSkillsFromJSON([
|
||||||
{
|
{
|
||||||
|
id: categoryFromFile.category.toLowerCase(),
|
||||||
|
name: categoryFromFile.category,
|
||||||
category: categoryFromFile.category,
|
category: categoryFromFile.category,
|
||||||
icon: categoryFromFile.icon,
|
icon: categoryFromFile.icon,
|
||||||
skills: [skillFromFile],
|
skills: [skillFromFile],
|
||||||
|
|||||||
Reference in New Issue
Block a user