File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed
Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 149149 " functions/log/helloWorld" ,
150150 " functions/log/processEntry" ,
151151 " functions/memorystore/redis" ,
152+ " functions/ocr/app" ,
152153 " functions/pubsub/publish" ,
153154 " functions/pubsub/subscribe" ,
154155 " functions/scheduleinstance" ,
Original file line number Diff line number Diff line change 9090 " document-ai" , // [ERR_REQUIRE_ESM]: require() of ES Module
9191 " functions/billing" , // (untested) Error: Request failed with status code 500
9292 " functions/imagemagick" , // (untested) Error: A bucket name is needed to use Cloud Storage
93- " functions/ocr/app" , // (untested) Error: Bucket not provided. Make sure you have a "bucket" property in your request
9493 " functions/slack" , // TypeError [ERR_INVALID_ARG_TYPE]: The "key" argument must be of type ... Received undefined
9594 " functions/v2/imagemagick" , // (untested) Error: A bucket name is needed to use Cloud Storage.
9695 " healthcare/fhir" , // Error: Cannot find module 'whatwg-url'
Original file line number Diff line number Diff line change 1+ {
2+ "env" : {
3+ "FUNCTIONS_BUCKET" : " nodejs-docs-samples-tests" ,
4+ "RESULT_BUCKET" : " nodejs-docs-samples-tests" ,
5+ "TRANSLATE_TOPIC" : " integration-tests-instance" ,
6+ "RESULT_TOPIC" : " integration-tests-instance" ,
7+ "TO_LANG" : " en,es"
8+ }
9+ }
Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ const translate = new Translate();
4141const publishResult = async ( topicName , data ) => {
4242 const dataBuffer = Buffer . from ( JSON . stringify ( data ) ) ;
4343
44- const [ topic ] = await pubsub . topic ( topicName ) . get ( { autoCreate : true } ) ;
45- topic . publishMessage ( { data : dataBuffer } ) ;
44+ pubsub . topic ( topicName ) . publishMessage ( dataBuffer ) ;
4645} ;
4746
4847// [START functions_ocr_detect]
You can’t perform that action at this time.
0 commit comments