Error in save function the controller fixed
Changed reference of chatRoom in the message's schema.