Fix invitees--add creator
This commit is contained in:
@@ -13,6 +13,9 @@ lunchControllers.controller 'CreateRunCtrl', ['$scope', '$http', '$location', 's
|
||||
|
||||
$scope.create = (run) ->
|
||||
data = angular.copy run
|
||||
data.invitees.push
|
||||
name: data.creatorName
|
||||
email: data.creatorEmail
|
||||
socket.post '/run', data, (response) ->
|
||||
$location.path '/run/' + response.id
|
||||
$scope.$apply()
|
||||
|
||||
Reference in New Issue
Block a user