1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

[bug] fablab:fix:categories_slugs

This commit is contained in:
Sylvain 2018-09-06 11:22:23 +02:00
parent bfa849acc2
commit c046b1d26b
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# Changelog Fab Manager
## next release
- Fix a bug: rake task fablab:fix:categories_slugs bash interpretation error
- [TODO DEPLOY] `rake fablab:fix:categories_slugs`
## v2.6.5 2018 July 24
- Upgraded ElasticSearch from 1.7 to 5.6

View File

@ -89,7 +89,7 @@ namespace :fablab do
desc 'reset slug in events categories'
task categories_slugs: :environment do
Category.all.each do |cat|
`curl -XPOST http://#{ENV["ELASTICSEARCH_HOST"]}:9200/stats/event/_update_by_query?conflicts=proceed&refresh&wait_for_completion -d '
`curl -XPOST http://#{ENV["ELASTICSEARCH_HOST"]}:9200/stats/event/_update_by_query?conflicts=proceed\\&refresh\\&wait_for_completion -d '
{
"script": {
"source": "ctx._source.subType = params.slug",