egg-born-module-a-base-sync
Advanced tools
Comparing version 4.8.14 to 4.8.15
@@ -88,6 +88,15 @@ module.exports = function (ctx) { | ||
if (child.categoryName.indexOf(':') === -1) { | ||
await ctx.bean.category.delete({ categoryId: child.id }); | ||
await this._deleteCategory(child); | ||
} | ||
} | ||
} | ||
async _deleteCategory(category) { | ||
try { | ||
await ctx.bean.category.delete({ categoryId: category.id }); | ||
} catch (err) { | ||
// donot throw error | ||
ctx.logger.info(`categoryId: ${category.id}, categoryName: ${category.categoryName}`); | ||
} | ||
} | ||
} | ||
@@ -94,0 +103,0 @@ |
{ | ||
"name": "egg-born-module-a-base-sync", | ||
"version": "4.8.14", | ||
"version": "4.8.15", | ||
"title": "Base", | ||
@@ -5,0 +5,0 @@ "eggBornModule": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2610643
35082