Skip to content

Commit

Permalink
fix: dont publish new bucket field to ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 13, 2023
1 parent 118c4ec commit 0c7dfe3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions meteor/server/publications/buckets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ meteorPublish(
meteorPublish(PubSub.bucketAdLibPieces, async function (selector: MongoQuery<BucketAdLib>, _token: string | undefined) {
if (!selector) throw new Meteor.Error(400, 'selector argument missing')
const modifier: FindOptions<BucketAdLib> = {
fields: {},
fields: {
ingestInfo: 0,
},

Check warning on line 50 in meteor/server/publications/buckets.ts

View check run for this annotation

Codecov / codecov/patch

meteor/server/publications/buckets.ts#L48-L50

Added lines #L48 - L50 were not covered by tests
}
if (isProtectedString(selector.bucketId) && (await BucketSecurity.allowReadAccess(this, selector.bucketId))) {
return BucketAdLibs.findWithCursor(selector, modifier)
Expand All @@ -58,7 +60,9 @@ meteorPublish(
async function (selector: MongoQuery<BucketAdLibAction>, _token: string | undefined) {
if (!selector) throw new Meteor.Error(400, 'selector argument missing')
const modifier: FindOptions<BucketAdLibAction> = {
fields: {},
fields: {
ingestInfo: 0,
},

Check warning on line 65 in meteor/server/publications/buckets.ts

View check run for this annotation

Codecov / codecov/patch

meteor/server/publications/buckets.ts#L63-L65

Added lines #L63 - L65 were not covered by tests
}
if (isProtectedString(selector.bucketId) && (await BucketSecurity.allowReadAccess(this, selector.bucketId))) {
return BucketAdLibActions.findWithCursor(selector, modifier)
Expand Down

0 comments on commit 0c7dfe3

Please sign in to comment.