Commit d00f9768 authored by Michael Iseard's avatar Michael Iseard
Browse files

Fix error where log showed entity not deleted when it was

parent 4d40798b
......@@ -363,6 +363,9 @@ class MapperService {
$this->get_cache_incrementer( true );
$this->logger->info( 'Record deleted.', [ 'table' => $this->get_table_name(), $column => $value ] );
do_action( $this->get_table_name( false ) . '_delete', $column, $value );
} else {
$this->logger->warning( 'Error deleting record.',
[ 'table' => $this->get_table_name(), $column => $value ] );
}
$this->logger->warning( 'Error deleting record.', [ 'table' => $this->get_table_name(), $column => $value ] );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment