mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 21:50:45 +00:00
avoid calling auditDetail insert if no records
This commit is contained in:
@ -215,11 +215,14 @@ public class AuditAction extends AbstractQActionFunction<AuditInput, AuditOutput
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!auditDetailRecords.isEmpty())
|
||||||
|
{
|
||||||
insertInput = new InsertInput();
|
insertInput = new InsertInput();
|
||||||
insertInput.setTableName("auditDetail");
|
insertInput.setTableName("auditDetail");
|
||||||
insertInput.setRecords(auditDetailRecords);
|
insertInput.setRecords(auditDetailRecords);
|
||||||
new InsertAction().execute(insertInput);
|
new InsertAction().execute(insertInput);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
LOG.error("Error performing an audit", e);
|
LOG.error("Error performing an audit", e);
|
||||||
|
Reference in New Issue
Block a user