Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
almasaeed2010 committed Jan 30, 2018
1 parent 1180e65 commit 1323c20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tripal_elasticsearch.module
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ function tripal_elasticsearch_node_delete($node) {
} catch (\Exception $e) {
if (!$tripal_elasticsearch_errors) {
$message = $e->getMessage() . ' Failed to delete indexed node ' . $node->nid;
watchdog('tripal_elasticsearch', $message, WATCHDOG_WARNING);
tripal_report_error('tripal_elasticsearch', TRIPAL_ERROR, $message);
$tripal_elasticsearch_errors = TRUE;
}
}
Expand Down Expand Up @@ -840,6 +840,8 @@ function tripal_elasticsearch_entity_update($entity, $entity_type) {
return;
}

// the entities job will verify if the record already exists or if it should
// create a new entry for it
$job = new EntitiesIndexJob($entity->bundle, $entity->id);
$job->dispatch();
}
Expand Down

0 comments on commit 1323c20

Please sign in to comment.