[#1491] remove old.habit from bailey notif

This commit is contained in:
Tyler Renelle
2013-09-08 22:01:20 -04:00
parent ecc442285b
commit a461bda7b8
3 changed files with 8 additions and 22 deletions

View File

@@ -29,9 +29,6 @@ db.users.find().forEach(function(user){
});
if (!_.isEqual(idList, preened)) {
user[type + "Ids"] = preened;
if (!!user.markModified) {
user.markModified(type+'Ids');
}
}
});

View File

@@ -12,11 +12,9 @@ var UserSchema = new Schema({
type: String,
'default': helpers.uuid
},
/*
# We want to know *every* time an object updates. Mongoose uses __v to designate when an object contains arrays which
# have been updated (http://goo.gl/gQLz41), but we want *every* update
*/
//We want to know *every* time an object updates. Mongoose uses __v to designate when an object contains arrays which
// have been updated (http://goo.gl/gQLz41), but we want *every* update
_v: {
type: Number,
'default': 0
@@ -149,14 +147,9 @@ var UserSchema = new Schema({
/* FIXME remove?*/
party: {
/*party._id FIXME make these populate docs?*/
current: String,
/*party._id*/
invitation: String,
/*party._id*/
//party._id //FIXME make these populate docs?
current: String, // party._id
invitation: String, // party._id
lastMessageSeen: String,
leader: Boolean
},
@@ -174,9 +167,7 @@ var UserSchema = new Schema({
blurb: String,
imageUrl: String,
name: String,
/*["http://ocdevel.com" ]*/
websites: Array
websites: Array //["http://ocdevel.com" ]
},
stats: {
hp: Number,
@@ -187,7 +178,6 @@ var UserSchema = new Schema({
tags: [
{
/* FIXME use refs?*/
id: String,
name: String
}
@@ -243,7 +233,7 @@ UserSchema.methods.toJSON = function() {
doc.id = doc._id;
transformTaskLists(doc); // we need to also transform for our server-side routes
// Remove some unecessary data
// Remove some unecessary data as far as client consumers are concerned
_.each(['habit', 'daily', 'todo', 'reward'], function(type) {
delete doc["#{type}Ids"]
});

View File

@@ -20,8 +20,7 @@ div(modal='user.flags.rewrite !== false')
<a target='_blank' href='https://play.google.com/store/apps/details?id=com.ocdevel.habitrpg'>Android</a> & <a target='_blank' href='https://itunes.apple.com/us/app/habitrpg/id689569235?mt=8'>iOS</a> Apps are out!</u>
p.
They're open source, so help us make them awesome. As for the rewrite: not all features are yet ported, but don't worry - you're still getting drops and streak-bonuses in the background, even if you can't see them yet.
If there are features you miss, check in on them at <a href='http://old.habitrpg.com' target='_blank'>old.habitrpg.com</a> and tell them to hurry on over. And if you're not already, be sure to follow our updates
on <a href="http://habitrpg.tumblr.com/" target="_blank">Tumblr</a> (there are some fun member highlights recently). One more thing: if you are a Veteran of the old site, I have granted you a Veteran Wolf! Check your inventory :)
We'll be working hard to bring in all the missing features. And if you're not already, be sure to follow our updates on <a href="http://habitrpg.tumblr.com/" target="_blank">Tumblr</a> (there are some fun member highlights recently). One more thing: if you are a Veteran of the old site, I have granted you a Veteran Wolf! Check your inventory :)
table(style='clear:both;')
tr