From c40a8c549dc5d33765a9706eb8d18cc24b105083 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Mon, 15 Oct 2012 15:14:00 +0100 Subject: [PATCH] Current docs include actual ObjectId in example code. Example code broken. Fixed to use Object id from variable "t". --- source/tutorial/perform-two-phase-commits.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tutorial/perform-two-phase-commits.txt b/source/tutorial/perform-two-phase-commits.txt index 4554730cb3d..4074eba1877 100644 --- a/source/tutorial/perform-two-phase-commits.txt +++ b/source/tutorial/perform-two-phase-commits.txt @@ -229,8 +229,8 @@ to set remove the pending transaction from the :term:`documents .. code-block:: javascript - db.accounts.update({name: t.source}, {$pull: {pendingTransactions: ObjectId("4d7bc7a8b8a04f5126961522")}}) - db.accounts.update({name: t.destination}, {$pull: {pendingTransactions: ObjectId("4d7bc7a8b8a04f5126961522")}}) + db.accounts.update({name: t.source}, {$pull: {pendingTransactions: t._id}}) + db.accounts.update({name: t.destination}, {$pull: {pendingTransactions: t._id}}) db.accounts.find() The :method:`find() ` operation will return the