react-backend/routes/notifications.js
//write given list of notifications to the database for long-term keeping
write given list of notifications to the database for long-term keeping
write given list of notifications to the database for long - term keeping
archiveNotifications(notifications) {
    const conn = this.conn;
    var multiQuery = "";
    notifications.forEach((notification) => {
      multiQuery += this.buildArchiveQuery(notification);
    });
    if (multiQuery != "") {
      conn.getConnection(function (err, conn) {
        conn.query(multiQuery, function (error, results, fields) {});
      });
    }
  }
archiveNotifications ( notifications ) { const conn = this . conn ; var multiQuery = "" ; notifications . forEach ( ( notification ) => { multiQuery += this . buildArchiveQuery ( notification ) ; } ) ; if ( multiQuery != "" ) { conn . getConnection ( function ( err , conn ) { conn . query ( multiQuery , function ( error , results , fields ) { } ) ; } ) ; } }
write given list of notifications to the database for long-term keeping
write given list of notifications to the database for long - term keeping