Skip to content

Update model.js#34

Open
vitaly-t wants to merge 1 commit into
oauthjs:masterfrom
vitaly-t:patch-1
Open

Update model.js#34
vitaly-t wants to merge 1 commit into
oauthjs:masterfrom
vitaly-t:patch-1

Conversation

@vitaly-t

@vitaly-t vitaly-t commented Mar 2, 2016

Copy link
Copy Markdown

your example was broken in so many places...
I tried to fix it, following the logic I saw there, but the last one cannot even be fixed, its a contradiction - you return nothing from the query, and trying to process the result...

your example  was broken in so many places...
i fixed, following the logic I saw there, but the last one cannot even be fixed, its a contradiction - you return nothing from the query, and trying to process the result...
@vitaly-t

vitaly-t commented Mar 2, 2016

Copy link
Copy Markdown
Author

Also, returning things like:

return users.length ? users[0] : false;

is generally a bad idea.

@vitaly-t

vitaly-t commented Mar 2, 2016

Copy link
Copy Markdown
Author

Missed one thing, the last:

yield pg.none

should also become

yield db.none

@ruimarinho

Copy link
Copy Markdown
Member

Thanks for the PR! I'll take a look at it during the weekend.

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.

2 participants