Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invite #136

Merged
merged 3 commits into from
Jul 17, 2018
Merged

Invite #136

merged 3 commits into from
Jul 17, 2018

Conversation

FrancisZamora
Copy link

invite model

@coveralls
Copy link

coveralls commented Jul 13, 2018

Coverage Status

Coverage increased (+0.1%) to 97.561% when pulling 0f20c20 on invite into 8081fb2 on v2.


class Invite extends MongoModels {
class Invite extends AnchorModel {
static async create(email,status) {
Copy link
Member

Choose a reason for hiding this comment

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

update this to be a JSON object called document so it will work with anchor API


this.insertOne(document, (err, docs) => {
status,
createdAt: new Date(),
Copy link
Member

Choose a reason for hiding this comment

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

remove Allow Anchor Model to create it

@FrancisZamora
Copy link
Author

I removed the createdAt and updatedAt from the create method and the schema, will the anchor model still be able to generate a timestamp?

@gregfrasco gregfrasco merged commit ceff85d into v2 Jul 17, 2018
@gregfrasco gregfrasco deleted the invite branch July 17, 2018 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants