PUT REQUEST but only for employer with value of 1 using Mongoose, JWT and Express

后端 未结 0 1510
小鲜肉
小鲜肉 2021-01-02 04:26

I\'m new to backend development. I want to promote a user but only if the current logged in user is an employer.

Here\'s the sample structure of the schema.

{

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