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 }, // 改为高级更合理
|
||||
];
|
||||
await this.termService.createMany({
|
||||
data: termsToCreate,
|
||||
});
|
||||
for (const termData of termsToCreate) {
|
||||
await this.termService.create({
|
||||
data: termData,
|
||||
});
|
||||
}
|
||||
console.log('created level terms');
|
||||
} catch (error) {
|
||||
console.error('Failed to create level terms:', error);
|
||||
|
|
Loading…
Reference in New Issue