79122151

Date: 2024-10-24 13:30:12
Score: 2.5
Natty:
Report link

About Because findOne is async function, one way to return from it is through callback function. Since version 7, mongoose dont support callbacks in FindOne, it must be used like a promise.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nick1000