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:
parent
bfa849acc2
commit
c046b1d26b
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user