I use this method in a model called Message, This model contains a
number of
attributes which are saved in the DB when the form is submitted. When
the
user submits the form, the get request is triggered and the data from
the
form is saved to the DB, but I need to additionally save the body of the
resbonse I created a field in the database for saving the body of each
request, called response , but I don’t know how to do that. How do I get
the
value of res.body to be saved in the response field with other
form-submitted data?
I use this method in a model called Message, This model contains a
number of attributes which are saved in the DB when the form is
submitted. When the user submits the form, the get request is
triggered and the data from the form is saved to the DB, but I need
to additionally save the body of the resbonse I created a field in
the database for saving the body of each request, called response ,
but I don’t know how to do that. How do I get the value of res.body
to be saved in the response field with other form-submitted data?