File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ const pool = mysql.createPool({
1414 // Support of named placeholders (https://github.com/mysqljs/mysql#custom-format)
1515 queryFormat : function ( query , values ) {
1616 if ( ! values ) {
17- return query ;
17+ return query
1818 }
1919 return query . replace ( / \: ( \w + ) / g, function ( txt , key ) {
2020 if ( values . hasOwnProperty ( key ) ) {
21- return this . escape ( values [ key ] ) ;
21+ return this . escape ( values [ key ] )
2222 }
23- return txt ;
24- } . bind ( this ) ) ;
23+ return txt
24+ } . bind ( this ) )
2525 }
2626} )
2727
2828routes . register ( app , pool )
2929
30- const port = process . env . PORT || 3000 ;
30+ const port = process . env . PORT || 3000
3131app . listen ( port , ( ) => {
3232 console . log ( `Listen on ${ port } ` )
3333} )
Original file line number Diff line number Diff line change @@ -14,20 +14,20 @@ const pool = mysql.createPool({
1414 // Support of named placeholders (https://github.com/mysqljs/mysql#custom-format)
1515 queryFormat: function(query, values) {
1616 if (!values) {
17- return query;
17+ return query
1818 }
1919 return query.replace(/\:(\w+)/g, function(txt, key) {
2020 if (values.hasOwnProperty(key)) {
21- return this.escape(values[key]);
21+ return this.escape(values[key])
2222 }
23- return txt;
24- }.bind(this));
23+ return txt
24+ }.bind(this))
2525 }
2626})
2727
2828routes.register(app, pool)
2929
30- const port = process.env.PORT || 3000;
30+ const port = process.env.PORT || 3000
3131app.listen(port, () => {
3232 console.log(`Listen on ${port}`)
3333})
You can’t perform that action at this time.
0 commit comments