Skip to content

Commit 1590848

Browse files
feat(seeds): fix target profile category
1 parent 795a8ee commit 1590848

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

api/db/seeds/data/team-evaluation/autonomous-courses/create-autonomous-courses.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import dayjs from 'dayjs';
22

3+
import { categories } from '../../../../../src/shared/domain/models/TargetProfile.js';
34
import {
45
REAL_PIX_SUPER_ADMIN_ID,
56
USER_ID_ADMIN_ORGANIZATION,
@@ -39,7 +40,13 @@ export default async function initUser(databaseBuilder) {
3940
isSimplifiedAccess: true,
4041
name: `Profil-cible pour parcours autonome n°${i}`,
4142
description: 'Profil cible pour parcours autonome',
42-
category: ['Les 16 compétences', 'Thématiques', 'Parcours sur-mesure', 'Parcours prédéfinis', 'Autres'][i - 1],
43+
category: [
44+
categories.COMPETENCES,
45+
categories.SUBJECT,
46+
categories.CUSTOM,
47+
categories.PREDEFINED,
48+
categories.OTHER,
49+
][i - 1],
4350
configTargetProfile: {
4451
frameworks: [
4552
{

0 commit comments

Comments
 (0)