feat(gifts): allow gifting gems from paypal/stripe

This commit is contained in:
Tyler Renelle
2014-11-26 15:14:23 -07:00
parent 7e9b92fcad
commit e8dbd5ca1a
10 changed files with 85 additions and 52 deletions
+3 -3
View File
@@ -93,10 +93,10 @@ GroupSchema.methods.toJSON = function(){
return doc;
}
var chatDefaults = module.exports.chatDefaults = function(message,user){
var chatDefaults = module.exports.chatDefaults = function(msg,user){
var message = {
id: shared.uuid(),
text: message,
text: msg,
timestamp: +new Date,
likes: {}
};
@@ -105,7 +105,7 @@ var chatDefaults = module.exports.chatDefaults = function(message,user){
uuid: user._id,
contributor: user.contributor && user.contributor.toObject(),
backer: user.backer && user.backer.toObject(),
user: user.profile.name,
user: user.profile.name
});
} else {
message.uuid = 'system';