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
|
||||
export * from "./layout";
|
||||
export * from "./management/pages";
|
||||
|
||||
// Composants réutilisables pour l'arborescence
|
||||
export * from "./management";
|
||||
|
||||
@@ -109,6 +109,8 @@ async function syncSkillsToDatabase(): Promise<void> {
|
||||
// Insérer/mettre à jour la skill (bulkInsert gère les conflits)
|
||||
await SkillsService.bulkInsertSkillsFromJSON([
|
||||
{
|
||||
id: categoryFromFile.category.toLowerCase(),
|
||||
name: categoryFromFile.category,
|
||||
category: categoryFromFile.category,
|
||||
icon: categoryFromFile.icon,
|
||||
skills: [skillFromFile],
|
||||
|
||||
Reference in New Issue
Block a user