Skip to content

Commit d096ac1

Browse files
authored
Merge branch 'master' into 8816-fix-couchdb-admin-search
2 parents 6dc2000 + 97e3d45 commit d096ac1

11 files changed

Lines changed: 199 additions & 471 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ jobs:
167167
with:
168168
mask-password: 'true'
169169

170+
- uses: actions/checkout@v4
170171
- name: Use Node.js ${{ env.NODE_VERSION }}
171172
uses: actions/setup-node@v4
172173
with:
173174
node-version: ${{ env.NODE_VERSION }}
174-
- uses: actions/checkout@v4
175175

176176
- name: Set system ulimit
177177
uses: ./.github/actions/bump-system-ulimit
@@ -294,11 +294,11 @@ jobs:
294294
with:
295295
mask-password: 'true'
296296

297+
- uses: actions/checkout@v4
297298
- name: Use Node.js ${{ env.NODE_VERSION }}
298299
uses: actions/setup-node@v4
299300
with:
300301
node-version: ${{ env.NODE_VERSION }}
301-
- uses: actions/checkout@v4
302302
- name: Download docker images artifacts
303303
uses: actions/download-artifact@v4
304304
with:

api/src/services/authorization.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -638,13 +638,15 @@ const getDocsByReplicationKeyNouveau = async (authorizationContext) => {
638638
continue;
639639
}
640640

641-
hits.push(...response.hits.map(hit => ({
642-
id: hit.id,
643-
fields: {
644-
...hit.fields,
645-
key: Array.isArray(hit.fields.key) ? hit.fields.key : [hit.fields.key],
646-
},
647-
})));
641+
for (const hit of response.hits) {
642+
hits.push({
643+
id: hit.id,
644+
fields: {
645+
...hit.fields,
646+
key: Array.isArray(hit.fields.key) ? hit.fields.key : [hit.fields.key],
647+
},
648+
});
649+
}
648650
}
649651

650652
return hits;

0 commit comments

Comments
 (0)