I am not able to change the status from o to 1. The server is returning 500 . I don't know what is wrong I have done everything fine why its not pushing.

```
function changeAdminStatus(req, res, next){
getSuperAminById(req.params.id)
    .then(function(data){
      if(data.account.status == 1)
          {
              console.log(data);
              Admin.findByIdAndUpdate(data._id,  {
                $push: {
                    'account.status' : 0
                }
            }, function(err, doc) {
                if (err) {
                    res.sendStatus(500);
                }
                 else if(doc) res.sendStatus(200);
                      else res.sendStatus(200);
            }
        );

    }

```