Skip to content

Commit

Permalink
Automatic lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StorytellerCZ committed Dec 10, 2023
1 parent f422dca commit ecab6fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.8.5
* Fixed `this.ready()` being fired too early [PR](https://github.com/Meteor-Community-Packages/meteor-publish-composite/pull/174) [manueltimita](https://github.com/manueltimita)

## v1.8.4

* Added basic TypeScript types [PR](https://github.com/Meteor-Community-Packages/meteor-publish-composite/pull/166) [@storytellercz](https://github.com/sponsors/StorytellerCZ)
Expand Down
8 changes: 4 additions & 4 deletions lib/publication.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Publication {
this.publishedDocs = new PublishedDocumentList()
this.collectionName = options.collectionName
// property to store promises for added callbacks
this.addedPromises = [];
this.addedPromises = []
}

async publish () {
Expand Down Expand Up @@ -48,11 +48,11 @@ class Publication {
}

// resolve the promise at the end of the added callback
resolve();
});
resolve()
})

// store the promise
this.addedPromises.push(addedPromise);
this.addedPromises.push(addedPromise)
}),
changed: Meteor.bindEnvironment((newDoc, oldDoc) => {
debugLog('Publication.observeHandle.changed', `${collectionName}:${newDoc._id}`)
Expand Down

0 comments on commit ecab6fc

Please sign in to comment.