X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f34a8d68bdd096cf1b019a9806bd1e6eba028d77..01ca27ba0a1ef84c53e223004249505435a788b6:/services/api/lib/update_priorities.rb diff --git a/services/api/lib/update_priorities.rb b/services/api/lib/update_priorities.rb index 4183ac10b1..94115340df 100644 --- a/services/api/lib/update_priorities.rb +++ b/services/api/lib/update_priorities.rb @@ -17,7 +17,7 @@ UNION and container_requests.requesting_container_uuid is not NULL ) order by containers.uuid for update - }, 'select_for_update_priorities', [[nil, container_uuid]] + }, 'select_for_update_priorities', [container_uuid] end def update_priorities starting_container_uuid @@ -27,5 +27,5 @@ def update_priorities starting_container_uuid ActiveRecord::Base.connection.exec_query %{ update containers set priority=computed.upd_priority from container_tree_priorities($1) as computed where containers.uuid = computed.pri_container_uuid and priority != computed.upd_priority -}, 'update_priorities', [[nil, starting_container_uuid]] +}, 'update_priorities', [starting_container_uuid] end