Create mongoose schema methods using TypeScript

后端 未结 0 1578
清酒与你
清酒与你 2021-01-11 20:30

I try to create method hashPassword for user schema.

schema.method("hashPassword", function (): void {
  const salt = bcrypt.genSaltSync(10);
  cons         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题