awitherow / aethernote

from where thoughts come
https://aethernote.herokuapp.com/
4 stars 0 forks source link

db hint #75

Open vitaly-t opened 7 years ago

vitaly-t commented 7 years ago

to consider that may be your getUser implementation should use method oneOrNone instead of one ;)

this is how users are normally checked, i.e. it is generally a bad pattern to reject when a record such as user isn't found based on a filter ;)

but then again, it is a general concept, your case may be different ;)

awitherow commented 7 years ago

@vitaly-t thank you for the advice and for making your library available! My first implementation was pretty choppy, but have started to read through your docs more to figure things out (hence, https://github.com/awitherow/aethernode/issues/74). Thanks for pointing this issue out too!

vitaly-t commented 7 years ago

pg-promise-demo is the best guideline :wink: