 EventEmitter = 							require('events').EventEmitter
 
 User = 									mongoose.model('User', require(global.home + '/script/views/db/user'))
+Post = 									mongoose.model('Post', require(global.home + '/script/views/db/post'))
 
 class Edit extends EventEmitter
 

			else
				callback(user)			if callback?




exports = module.exports = (req, res) ->

					user.firstname =		@mdl.model.firstname_new
					user.lastname =			@mdl.model.lastname_new
					user.save()

					@editPosts()

					@emit 'success'

			else
