add
This commit is contained in:
parent
89f21c1a41
commit
e44795ebee
|
@ -253,9 +253,11 @@ export class GenDevService {
|
||||||
{ name: '中级', taxonomyId: taxLevel.id },
|
{ name: '中级', taxonomyId: taxLevel.id },
|
||||||
{ name: '高级', taxonomyId: taxLevel.id }, // 改为高级更合理
|
{ name: '高级', taxonomyId: taxLevel.id }, // 改为高级更合理
|
||||||
];
|
];
|
||||||
await this.termService.createMany({
|
for (const termData of termsToCreate) {
|
||||||
data: termsToCreate,
|
await this.termService.create({
|
||||||
});
|
data: termData,
|
||||||
|
});
|
||||||
|
}
|
||||||
console.log('created level terms');
|
console.log('created level terms');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to create level terms:', error);
|
console.error('Failed to create level terms:', error);
|
||||||
|
|
Loading…
Reference in New Issue