Skip to content

Commit 955c130

Browse files
Update src/content/docs/workers/tutorials/using-prisma-postgres-with-workers/index.mdx
Co-authored-by: Nikolas <[email protected]>
1 parent 742072d commit 955c130

File tree

1 file changed

+5
-2
lines changed
  • src/content/docs/workers/tutorials/using-prisma-postgres-with-workers

1 file changed

+5
-2
lines changed

src/content/docs/workers/tutorials/using-prisma-postgres-with-workers/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default {
167167
datasourceUrl: env.DATABASE_URL,
168168
}).$extends(withAccelerate());
169169

170-
await prisma.user.create({
170+
const user = await prisma.user.create({
171171
data: {
172172
email: `Jon${Math.ceil(Math.random() * 1000)}@gmail.com`,
173173
name: "Jon Doe",
@@ -176,7 +176,10 @@ export default {
176176

177177
const userCount = await prisma.user.count();
178178

179-
return new Response(`Number of users in the database: ${userCount}`);
179+
return new Response(`\
180+
Created new user: ${user.name} (${user.email}).
181+
Number of users in the database: ${userCount}.
182+
`);
180183
},
181184
} satisfies ExportedHandler<Env>;
182185
```

0 commit comments

Comments
 (0)