@@ -16,7 +16,7 @@ async function testAlgoliasearch() {
1616 // Init client with appId and apiKey
1717 const client = algoliasearch ( appId , apiKey ) ;
1818 const clientLite = liteClient ( appId , apiKey ) ;
19-
19+
2020 client . addAlgoliaAgent ( 'algoliasearch node playground' , '0.0.1' ) ;
2121
2222 try {
@@ -134,12 +134,21 @@ async function testAlgoliasearch() {
134134
135135async function testAlgoliasearchBridgeIngestion ( ) {
136136 // Init client with appId and apiKey
137- const client = algoliasearch ( appId , adminApiKey , { transformation : { region : 'eu' } } ) ;
138-
139- await client . saveObjectsWithTransformation ( { indexName : "foo" , objects : [ { objectID : "foo" , data : { baz : "baz" , win : 42 } } ] , waitForTasks : true } )
140-
141- await client . partialUpdateObjectsWithTransformation ( { indexName : "foo" , objects : [ { objectID : "foo" , data : { baz : "baz" , win : 42 } } ] , waitForTasks : true , createIfNotExists : false } )
137+ const client = algoliasearch ( appId , adminApiKey , { transformation : { region : 'eu' } } ) ;
138+
139+ await client . saveObjectsWithTransformation ( {
140+ indexName : 'foo' ,
141+ objects : [ { objectID : 'foo' , data : { baz : 'baz' , win : 42 } } ] ,
142+ waitForTasks : true ,
143+ } ) ;
144+
145+ await client . partialUpdateObjectsWithTransformation ( {
146+ indexName : 'foo' ,
147+ objects : [ { objectID : 'foo' , data : { baz : 'baz' , win : 42 } } ] ,
148+ waitForTasks : true ,
149+ createIfNotExists : false ,
150+ } ) ;
142151}
143152
144153// testAlgoliasearch();
145- testAlgoliasearchBridgeIngestion ( )
154+ testAlgoliasearchBridgeIngestion ( ) ;
0 commit comments