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:
@@ -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