PSA : always check the verb of your postman requests before you go on a wild witch hunt to find out which controller is at fault.
😁3
here is a type safe way to do a try catch.
im trying to avoid
/* eslint-disable @typenoscript-eslint/ban-ts-comment */
//@ts-nocheck
on all the ts files i write
like if im using ts , i might as well use types lol
im trying to avoid
/* eslint-disable @typenoscript-eslint/ban-ts-comment */
//@ts-nocheck
on all the ts files i write
like if im using ts , i might as well use types lol
me , does a big refactor because i thought problem was inefficient code
problem : just a typo
me : well , i guess i have a better codebase now.
problem : just a typo
me : well , i guess i have a better codebase now.
😁1
do this if you are working with mongoose schemas , registering them in their own files is bad because sometimes those files might not get imported in order so you can just control execution by putting an export of the models right after the connect function
Right instead of left
Right instead of left
👍2