|
@@ -382,7 +382,7 @@ module.exports = app => {
|
|
|
order++;
|
|
|
uSort++;
|
|
|
}
|
|
|
- await transaction.insert(this.tableName, newAuditors);
|
|
|
+ if (newAuditors.length > 0) await transaction.insert(this.tableName, newAuditors);
|
|
|
await transaction.commit();
|
|
|
} catch (err) {
|
|
|
await transaction.rollback();
|