From ca2d45113c7f0d9ad5b59ac919355bb0d93737ef Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 12 Jan 2015 11:50:46 -0700 Subject: [PATCH] fix(billing): script to fix current_period_end, see #4420 --- migrations/current_period_end.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 migrations/current_period_end.js diff --git a/migrations/current_period_end.js b/migrations/current_period_end.js new file mode 100644 index 0000000000..31e33e4a79 --- /dev/null +++ b/migrations/current_period_end.js @@ -0,0 +1,5 @@ +// mongo habitrpg ./node_modules/moment/moment.js ./migrations/current_period_end.js +db.users.update( + {_id:''}, + {$set:{'purchased.plan.dateTerminated':moment().add({days:7}).toDate()}} +) \ No newline at end of file