Skip to content

Commit ee32796

Browse files
committed
#187 add repoName field for each application while create new application
1 parent aa8e05f commit ee32796

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

server/api/application/application.controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ ApplicationController.prototype = {
5454
create: function (req, res) {
5555
var self = this;
5656
req.body['ownerId'] = req.user._id;
57+
req.body['repoName'] = req.user.repos[0];
5758
req.body['clientId'] = this.model.generateRandomObjectId();
5859
req.body['clientSecret'] = this.model.generateRandomObjectId();
5960

server/api/application/application.model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var ApplicationDefinition = {
2828
},
2929
description: String,
3030
ownerId: String,
31+
repoName: String,
3132
clientId: String,
3233
clientSecret: String,
3334
jwtExpiration: {

0 commit comments

Comments
 (0)