Open vitaly-t opened 8 years ago
Also, returning things like:
return users.length ? users[0] : false;
is generally a bad idea.
Missed one thing, the last:
yield pg.none
should also become
yield db.none
Thanks for the PR! I'll take a look at it during the weekend.
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...