We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 513c048 commit 723b0acCopy full SHA for 723b0ac
meteor/server/publications/buckets.ts
@@ -59,15 +59,15 @@ meteorPublish(
59
CorelibPubSub.bucketAdLibActions,
60
async function (studioId: StudioId, bucketId: BucketId | null, showStyleVariantIds: ShowStyleVariantId[]) {
61
check(studioId, String)
62
- check(bucketId, String)
+ check(bucketId, Match.Maybe(String))
63
check(showStyleVariantIds, Array)
64
65
triggerWriteAccessBecauseNoCheckNecessary()
66
67
return BucketAdLibActions.findWithCursor(
68
{
69
studioId: studioId,
70
- bucketId: bucketId,
+ bucketId: bucketId ?? undefined,
71
showStyleVariantId: {
72
$in: [null, ...showStyleVariantIds], // null = valid for all variants
73
},
0 commit comments