This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,7 @@ async function updateUser (userId, body) {
89
89
index : config . get ( 'ES.USER_INDEX' ) ,
90
90
type : config . get ( 'ES.USER_TYPE' ) ,
91
91
id : userId ,
92
- body : { doc : body } ,
93
- refresh : 'wait_for'
92
+ body : { doc : body }
94
93
} )
95
94
}
96
95
@@ -115,8 +114,7 @@ async function updateOrg (organizationId, body) {
115
114
index : config . get ( 'ES.ORGANIZATION_INDEX' ) ,
116
115
type : config . get ( 'ES.ORGANIZATION_TYPE' ) ,
117
116
id : organizationId ,
118
- body : { doc : body } ,
119
- refresh : 'wait_for'
117
+ body : { doc : body }
120
118
} )
121
119
}
122
120
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ async function processCreate (message) {
27
27
type : topResources [ resource ] . type ,
28
28
id : message . payload . id ,
29
29
body : _ . omit ( message . payload , 'resource' ) ,
30
- refresh : 'wait_for '
30
+ refresh : 'true '
31
31
} )
32
32
} else if ( _ . includes ( _ . keys ( userResources ) , resource ) ) {
33
33
// process user resources such as userSkill, userAttribute...
@@ -102,8 +102,7 @@ async function processUpdate (message) {
102
102
id,
103
103
body : {
104
104
doc : _ . assign ( source , _ . omit ( message . payload , 'resource' ) )
105
- } ,
106
- refresh : 'wait_for'
105
+ }
107
106
} )
108
107
} else if ( _ . includes ( _ . keys ( userResources ) , resource ) ) {
109
108
// process user resources such as userSkill, userAttribute...
@@ -175,7 +174,7 @@ async function processDelete (message) {
175
174
index : topResources [ resource ] . index ,
176
175
type : topResources [ resource ] . type ,
177
176
id : message . payload . id ,
178
- refresh : 'wait_for '
177
+ refresh : 'true '
179
178
} )
180
179
} else if ( _ . includes ( _ . keys ( userResources ) , resource ) ) {
181
180
// process user resources such as userSkill, userAttribute...
You can’t perform that action at this time.
0 commit comments