Skip to content

Commit c955f37

Browse files
author
Theo Gravity
authored
Merge pull request #49 from g-div/patch-1
Fix syntax error in examples
2 parents 89b4404 + 6eb50ff commit c955f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import sqlite from 'sqlite';
3939

4040
const app = express();
4141
const port = process.env.PORT || 3000;
42-
const dbPromise = sqlite.open('./database.sqlite', { Promise }));
42+
const dbPromise = sqlite.open('./database.sqlite', { Promise });
4343

4444
app.get('/post/:id', async (req, res, next) => {
4545
try {
@@ -62,7 +62,7 @@ app.listen(port);
6262
If you want to enable the [database object cache](https://github.com/mapbox/node-sqlite3/wiki/Caching)
6363

6464
```js
65-
sqlite.open('./database.sqlite', { cached: true }))
65+
sqlite.open('./database.sqlite', { cached: true })
6666
```
6767

6868
### Migrations

0 commit comments

Comments
 (0)