Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Add update event method #59

Closed
wants to merge 1 commit into from
Closed

Add update event method #59

wants to merge 1 commit into from

Conversation

jtrigalo
Copy link

@jtrigalo jtrigalo commented Aug 3, 2014

No description provided.

'date': event.date,
}, upsertData
, {upsert: true}
).then(function(result) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should return return result.saveQ() because otherwise it will continue before the object is really save.

So replace by return result.saveQ().thenResolve(result)

@SamyPesse
Copy link
Member

Can you also add a documentation in the README in the section about the API

@jtrigalo
Copy link
Author

jtrigalo commented Aug 9, 2014

ok thanks for the review. As i need an update for a type/date, i've put them in PUT context while properties to update are in arguments.

@jtrigalo jtrigalo closed this May 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants