Skip to content

Commit

Permalink
#187 add repoName field for each application while create new applica…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
lymanlai committed Aug 15, 2015
1 parent aa8e05f commit ee32796
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/api/application/application.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ ApplicationController.prototype = {
create: function (req, res) {
var self = this;
req.body['ownerId'] = req.user._id;
req.body['repoName'] = req.user.repos[0];
req.body['clientId'] = this.model.generateRandomObjectId();
req.body['clientSecret'] = this.model.generateRandomObjectId();

Expand Down
1 change: 1 addition & 0 deletions server/api/application/application.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var ApplicationDefinition = {
},
description: String,
ownerId: String,
repoName: String,
clientId: String,
clientSecret: String,
jwtExpiration: {
Expand Down

0 comments on commit ee32796

Please sign in to comment.