Skip to content

Commit 4ef1dc5

Browse files
committed
fix: new shape
1 parent e5c2607 commit 4ef1dc5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/javascript/clients/algoliasearch/builds/definition.mustache

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export function algoliasearch(
9595
return {
9696
...client,
9797
98-
async saveObjectsWithTransformation({ objects, waitForTasks }, requestOptions): Promise<WatchResponse> {
98+
async saveObjectsWithTransformation({ indexName, objects, waitForTasks }, requestOptions): Promise<WatchResponse> {
9999
if (!ingestionTransporter) {
100100
throw new Error('`transformation.region` must be provided at client instantiation before calling this method.');
101101
}
@@ -106,6 +106,7 @@ export function algoliasearch(
106106

107107
return ingestionTransporter?.push(
108108
{
109+
indexName,
109110
watch: waitForTasks,
110111
pushTaskPayload: {
111112
action: 'addObject',
@@ -117,7 +118,7 @@ export function algoliasearch(
117118
},
118119

119120
async partialUpdateObjectsWithTransformation(
120-
{ objects, createIfNotExists, waitForTasks },
121+
{ indexName, objects, createIfNotExists, waitForTasks },
121122
requestOptions,
122123
): Promise<WatchResponse> {
123124
if (!ingestionTransporter) {
@@ -130,6 +131,7 @@ export function algoliasearch(
130131

131132
return ingestionTransporter?.push(
132133
{
134+
indexName,
133135
watch: waitForTasks,
134136
pushTaskPayload: {
135137
action: createIfNotExists ? 'partialUpdateObject' : 'partialUpdateObjectNoCreate',

0 commit comments

Comments
 (0)