backend/tests/db.js
/**
 *  @param PollID (string) The ID of the data to replace
 *  @param data (JSON) The data to replace the original with
*/
@param PollID (string) The ID of the data to replace
@param data (JSON) The data to replace the original with
@param PollID ( string ) The ID of the data to replace @param data ( JSON ) The data to replace the original with
function updateData(PollID, data) {
   polls
   .remove({id: PollID})
   .then(() => {
      console.log('POLL REMOVED!');
   });
   polls
   .insert(data)
   .then((dat) => {
      console.log('NEW POLL INSERTED!', dat);
   })
}
function updateData ( PollID , data ) { polls . remove ( { id : PollID } ) . then ( ( ) => { console . log ( 'POLL REMOVED!' ) ; } ) ; polls . insert ( data ) . then ( ( dat ) => { console . log ( 'NEW POLL INSERTED!' , dat ) ; } ) }
@param PollID (string) The ID of the data to replace
  @param data (JSON) The data to replace the original with
@param PollID ( string ) The ID of the data to replace @param data ( JSON ) The data to replace the original with