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 +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,8 @@ 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 }
92
+ body : { doc : body } ,
93
+ refresh : 'wait_for'
93
94
} )
94
95
}
95
96
@@ -114,7 +115,8 @@ async function updateOrg (organizationId, body) {
114
115
index : config . get ( 'ES.ORGANIZATION_INDEX' ) ,
115
116
type : config . get ( 'ES.ORGANIZATION_TYPE' ) ,
116
117
id : organizationId ,
117
- body : { doc : body }
118
+ body : { doc : body } ,
119
+ refresh : 'wait_for'
118
120
} )
119
121
}
120
122
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 : 'true '
30
+ refresh : 'wait_for '
31
31
} )
32
32
} else if ( _ . includes ( _ . keys ( userResources ) , resource ) ) {
33
33
// process user resources such as userSkill, userAttribute...
@@ -102,7 +102,8 @@ async function processUpdate (message) {
102
102
id,
103
103
body : {
104
104
doc : _ . assign ( source , _ . omit ( message . payload , 'resource' ) )
105
- }
105
+ } ,
106
+ refresh : 'wait_for'
106
107
} )
107
108
} else if ( _ . includes ( _ . keys ( userResources ) , resource ) ) {
108
109
// process user resources such as userSkill, userAttribute...
@@ -174,7 +175,7 @@ async function processDelete (message) {
174
175
index : topResources [ resource ] . index ,
175
176
type : topResources [ resource ] . type ,
176
177
id : message . payload . id ,
177
- refresh : 'true '
178
+ refresh : 'wait_for '
178
179
} )
179
180
} else if ( _ . includes ( _ . keys ( userResources ) , resource ) ) {
180
181
// process user resources such as userSkill, userAttribute...
You can’t perform that action at this time.
0 commit comments