Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit db8cdfa

Browse files
committed
Updated images
1 parent 9a237a8 commit db8cdfa

File tree

7 files changed

+6
-10
lines changed

7 files changed

+6
-10
lines changed

docs/guides/nodejs/nitric-and-pgsql.mdx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ mainApi.patch('/todos/:id', async (ctx) => {
121121
mainApi.patch('/todos/:id/toggle', async (ctx) => {
122122
const { id } = ctx.req.params
123123
const client = await getClient()
124-
125-
await client.query('UPDATE todos SET done = NOT done WHERE id = $1',
126-
[parseInt(id)]
127-
);
124+
125+
await client.query('UPDATE todos SET done = NOT done WHERE id = $1', [
126+
parseInt(id),
127+
])
128128
})
129129

130130
// Delete a todo
@@ -145,15 +145,11 @@ nitric start
145145

146146
Using the dashboard, apply your migrations from the databases tab to initialize your local db.
147147

148-
![Apply migrations](/docs/images/guides/nitric-and-pgsql/migrations.png)
148+
![Apply migrations](/docs/images/guides/nitric-and-pgsql/step-1.png)
149149

150150
### Add some todos using the Nitric dashboard
151151

152-
Open the local dashboard at <a target="_blank" href="http://localhost:49152">localhost:49152</a>, then navigate to the `POST /todos` endpoint.
153-
154-
![Add id param for creating a todo](/docs/images/guides/nitric-and-pgsql/step-1.png)
155-
156-
Then add some content to the body of the request, stating the `text` key and value of the todo task and click send.
152+
Open the local dashboard at <a target="_blank" href="http://localhost:49152">localhost:49152</a>, then navigate to the `POST /todos` endpoint and add some content to the body of the request, stating the `text` key and value of the todo task and click send.
157153

158154
![Add text content for the todo](/docs/images/guides/nitric-and-pgsql/step-2.png)
159155

-149 KB
Binary file not shown.
14.2 KB
Loading
12.8 KB
Loading
17.3 KB
Loading
53.3 KB
Loading
12.3 KB
Loading

0 commit comments

Comments
 (0)