Skip to content

Commit 4ef001f

Browse files
authored
Update 1-connecting.mdx (#110)
Update according to ES6 syntax http://es6-features.org/#PropertyShorthand
1 parent 413eedf commit 4ef001f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/features/1-connecting.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const { Pool, Client } = require('pg')
113113
const connectionString = 'postgresql://dbuser:secretpassword@database.server.com:3211/mydb'
114114

115115
const pool = new Pool({
116-
connectionString: connectionString,
116+
connectionString,
117117
})
118118

119119
pool.query('SELECT NOW()', (err, res) => {
@@ -122,7 +122,7 @@ pool.query('SELECT NOW()', (err, res) => {
122122
})
123123

124124
const client = new Client({
125-
connectionString: connectionString,
125+
connectionString,
126126
})
127127
client.connect()
128128

0 commit comments

Comments
 (0)