From a9a848533071a8e9eb7ad5a3ed77d40adc2ffe85 Mon Sep 17 00:00:00 2001 From: srg <48598846+dreadwood@users.noreply.github.com> Date: Sun, 19 Jun 2022 01:51:54 +0400 Subject: [PATCH] fix small spelling mistake --- 06-postgre-and-node/02-node-and-postgresql/03-insert.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/06-postgre-and-node/02-node-and-postgresql/03-insert.js b/06-postgre-and-node/02-node-and-postgresql/03-insert.js index f23f23b..1b4078a 100644 --- a/06-postgre-and-node/02-node-and-postgresql/03-insert.js +++ b/06-postgre-and-node/02-node-and-postgresql/03-insert.js @@ -12,8 +12,8 @@ const {Client} = require(`pg`); const resultInsertUser = await client.query(insertQuery, [`Axl`, `Rose`, `1962-02-06`, `test@gr.local`]); const id = parseInt(resultInsertUser.rows[0].id, 10); - const selectLastRectord = `SELECT * FROM peoples WHERE peoples.id = $1`; - const userRecord = await client.query(selectLastRectord, [id]); + const selectLastRecord = `SELECT * FROM peoples WHERE peoples.id = $1`; + const userRecord = await client.query(selectLastRecord, [id]); console.table(userRecord.rows); client.end();