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