SHARE
TWEET

Untitled

a guest Jul 17th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. addNewTrade(tradeId, steamid, summ) {
  2.       this.connection.query("INSERT INTO trades (`tradeId`, `steamid`, `summ`) VALUES ('" + tradeId + "', '" + steamid + "', '" + summ + "')", (error, row, results) => {
  3.         if(error) {
  4.           if(error.code === 'PROTOCOL_CONNECTION_LOST' || error.code === 'ECONNRESET') {
  5.             return self.mysqlConnect()
  6.           } else {
  7.             return console.log(error)
  8.           }
  9.         } else {
  10.           console.log("[!] Added new trade " + tradeId + " for " + steamid + ".")
  11.         }
  12.       })
  13.     }
RAW Paste Data
Top