From c8db2ba0bb777f307b690a0cb0aa032e25ddc4f5 Mon Sep 17 00:00:00 2001 From: Yaman Date: Sun, 11 Jan 2015 19:07:29 -0500 Subject: [PATCH] add carts as mongo collection --- chromebook-checkout-meteor/client/chromebook.js | 1 + chromebook-checkout-meteor/collections/carts.js | 1 + 2 files changed, 2 insertions(+) create mode 100644 chromebook-checkout-meteor/collections/carts.js diff --git a/chromebook-checkout-meteor/client/chromebook.js b/chromebook-checkout-meteor/client/chromebook.js index e5003ec..02ec30a 100644 --- a/chromebook-checkout-meteor/client/chromebook.js +++ b/chromebook-checkout-meteor/client/chromebook.js @@ -45,6 +45,7 @@ Template.chromebook.events({ Chromebooks.update(this._id, {$set: {status: 0}}); Chromebooks.update(this._id, {$set: {last_checkout: null}}); Chromebooks.update(this._id, {$set: {userid: null}}); + Chromebooks.update(this._id, {$set: {user: null}}); } } }); \ No newline at end of file diff --git a/chromebook-checkout-meteor/collections/carts.js b/chromebook-checkout-meteor/collections/carts.js new file mode 100644 index 0000000..bbeca1d --- /dev/null +++ b/chromebook-checkout-meteor/collections/carts.js @@ -0,0 +1 @@ +carts = new Mongo.Collection("carts"); \ No newline at end of file