react-backend/routes/notifications.js
//build insert query for given notification object
build insert query for given notification object
build insert query for given notification object
buildArchiveQuery(notification) {
    var archiveNotificationsQuery =
      "insert into Notification(associatedAccount, type, processingDate, description) values(";
    return (
      archiveNotificationsQuery +
      this.accountID +
      ",'" +
      notification["type"] +
      "','" +
      notification["processingDate"] +
      "','" +
      notification["description"] +
      "');"
    );
  }
buildArchiveQuery ( notification ) { var archiveNotificationsQuery = "insert into Notification(associatedAccount, type, processingDate, description) values(" ; return ( archiveNotificationsQuery + this . accountID + ",'" + notification [ "type" ] + "','" + notification [ "processingDate" ] + "','" + notification [ "description" ] + "');" ) ; }
build insert query for given notification object
build insert query for given notification object