Commit 300044d3 authored by Kristijan Čagran's avatar Kristijan Čagran
Browse files

Fix iddle transaction on resource update

parent 51ef7d4c
......@@ -79,4 +79,5 @@ def _update_search_index(package_id, log):
package = p.toolkit.get_action('package_show')(
context_, {'id': package_id})
package_index.index_package(package, defer_commit=False)
model.Session.commit()
log.info('Search indexed %s', package['name'])
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