Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ea98827

Browse files
committed
Add missing semicolons
1 parent c8a8a35 commit ea98827

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎transaction.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function createReservation(client, userEmail, nameOfListing, reservationDa
8787
{ email: userEmail },
8888
{ $addToSet: { reservations: reservation } },
8989
{ session });
90-
console.log(`${usersUpdateResults.matchedCount} document(s) found in the users collection with the email address ${userEmail}.`)
90+
console.log(`${usersUpdateResults.matchedCount} document(s) found in the users collection with the email address ${userEmail}.`);
9191
console.log(`${usersUpdateResults.modifiedCount} document(s) was/were updated to include the reservation.`);
9292

9393
// Check if the Airbnb listing is already reserved for those dates. If so, abort the transaction.
@@ -106,7 +106,7 @@ async function createReservation(client, userEmail, nameOfListing, reservationDa
106106
{ name: nameOfListing },
107107
{ $addToSet: { datesReserved: { $each: reservationDates } } },
108108
{ session });
109-
console.log(`${listingsAndReviewsUpdateResults.matchedCount} document(s) found in the listingsAndReviews collection with the name ${nameOfListing}.`)
109+
console.log(`${listingsAndReviewsUpdateResults.matchedCount} document(s) found in the listingsAndReviews collection with the name ${nameOfListing}.`);
110110
console.log(`${listingsAndReviewsUpdateResults.modifiedCount} document(s) was/were updated to include the reservation dates.`);
111111

112112
}, transactionOptions);
@@ -116,7 +116,7 @@ async function createReservation(client, userEmail, nameOfListing, reservationDa
116116
} else {
117117
console.log("The transaction was intentionally aborted.");
118118
}
119-
} catch(e){
119+
} catch(e){
120120
console.log("The transaction was aborted due to an unexpected error: " + e);
121121
} finally {
122122
// Step 4: End the session

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /