googleapis / nodejs-pubsub

Node.js client for Google Cloud Pub/Sub: Ingest event streams from anywhere, at any scale, for simple, reliable, real-time stream analytics.
https://cloud.google.com/pubsub/
Apache License 2.0
518 stars 230 forks source link

fix: always fill the topic and sub names when creating from a PubSub object #1816

Closed feywind closed 11 months ago

feywind commented 11 months ago

This can happen when the create call is the first thing we do when talking to the server, and the projectId hasn't filled yet.

Fixes: https://github.com/googleapis/nodejs-pubsub/issues/1676