This commit is contained in:
ditiqi 2025-02-24 20:24:15 +08:00
parent 89f21c1a41
commit e44795ebee
1 changed files with 5 additions and 3 deletions

View File

@ -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);