Skip to content

Commit a820e9b

Browse files
author
Andrew Link
committed
update pseudo code
1 parent 883efd2 commit a820e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Then, write as many queries as you want, and when you are done, you can commit t
3939
someMethod = async () => {
4040
const pool = await dataSource.connect(DATABASE_POOL);
4141
const transactionConnection = await dataSource.transactionConnection(pool);
42-
transactionConnection.beginTransaction();
42+
await transactionConnection.beginTransaction();
4343
4444
try {
4545
await transactionConnection.execute(SOME_QUERY, []);

0 commit comments

Comments
 (0)