Open shahenazmonia opened 5 years ago
It would be better if you create another file for database stuff. You already have created a queries folder, write the queries inside it, then just call the functions in handler file https://github.com/FACK1/fid-or/blob/62bacd0da6783b58ac3b9d615356ab999c428c0a/src/handler.js#L66
You don't need to add brackets when you want to compare something with an endpoint, it's a bad practice https://github.com/FACK1/fid-or/blob/62bacd0da6783b58ac3b9d615356ab999c428c0a/src/router.js#L14
It would be better if you create another file for database stuff. You already have created a queries folder, write the queries inside it, then just call the functions in handler file https://github.com/FACK1/fid-or/blob/62bacd0da6783b58ac3b9d615356ab999c428c0a/src/handler.js#L66
You don't need to add brackets when you want to compare something with an endpoint, it's a bad practice https://github.com/FACK1/fid-or/blob/62bacd0da6783b58ac3b9d615356ab999c428c0a/src/router.js#L14