@shushed/helpers 0.0.198-v2-20251105075743 → 0.0.198-v2-20251105081851
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -291,9 +291,11 @@ class PubSubHelper extends runtime_1.default {
|
|
|
291
291
|
};
|
|
292
292
|
const opts = Object.assign({}, defaultOptions, inputOpts);
|
|
293
293
|
let nextMetadata = null;
|
|
294
|
-
if (
|
|
295
|
-
|
|
296
|
-
|
|
294
|
+
if (!isSubscriptionBigQuery(opts)) {
|
|
295
|
+
if (subscriptionMetaData?.pushConfig?.pushEndpoint) {
|
|
296
|
+
nextMetadata = nextMetadata || {};
|
|
297
|
+
nextMetadata.pushConfig = null;
|
|
298
|
+
}
|
|
297
299
|
}
|
|
298
300
|
if (opts.dlqTopic) {
|
|
299
301
|
if (opts.dlqTopic.name !== subscriptionMetaData?.deadLetterPolicy?.deadLetterTopic
|
|
@@ -319,9 +321,11 @@ class PubSubHelper extends runtime_1.default {
|
|
|
319
321
|
nextMetadata.enableExactlyOnceDelivery = null;
|
|
320
322
|
}
|
|
321
323
|
}
|
|
322
|
-
if ((opts
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
if (!isSubscriptionBigQuery(opts)) {
|
|
325
|
+
if ((opts.subscriptionFilter && subscriptionMetaData?.filter) && opts.subscriptionFilter !== subscriptionMetaData?.filter) {
|
|
326
|
+
nextMetadata = nextMetadata || {};
|
|
327
|
+
nextMetadata.filter = opts.subscriptionFilter || null;
|
|
328
|
+
}
|
|
325
329
|
}
|
|
326
330
|
if (opts.retryMinDelay != subscriptionMetaData?.retryPolicy?.minimumBackoff?.seconds
|
|
327
331
|
|| opts.retryMaxDelay != subscriptionMetaData?.retryPolicy?.maximumBackoff?.seconds) {
|
|
@@ -393,6 +397,7 @@ class PubSubHelper extends runtime_1.default {
|
|
|
393
397
|
}
|
|
394
398
|
const createPayload = await this.updateSubscription(subscriptionName, subscription, subscriptionMetaData, opts);
|
|
395
399
|
if (createPayload && !subscription) {
|
|
400
|
+
this.logging.log('ensureSubscribtionExists creating subscription ' + subscriptionName, createPayload);
|
|
396
401
|
try {
|
|
397
402
|
await opts.topic.createSubscription(subscriptionName, createPayload);
|
|
398
403
|
}
|