Skip to content

Commit bd1ac76

Browse files
committed
fixup!
1 parent d4a5689 commit bd1ac76

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/content/pages/en/guide/database-integration.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ const db = new DatabaseSync('app.db');
6060
db.exec('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)');
6161

6262
app.get('/users/:id', (req, res) => {
63-
const user = db.prepare('SELECT * FROM users WHERE id = ?').get(req.params.id) as User | undefined;
63+
const user = db.prepare('SELECT * FROM users WHERE id = ?').get(req.params.id) as
64+
| User
65+
| undefined;
6466
res.json(user);
6567
});
6668

0 commit comments

Comments
 (0)