Skip to content

Commit d572155

Browse files
committed
fix: skill dropdown issue
1 parent a0a8f63 commit d572155

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const fs = require('fs');
99
* @version 1.0
1010
*/
1111
module.exports = {
12-
PORT: process.env.PORT || 80, // eslint-disable-line no-magic-numbers
12+
PORT: process.env.PORT || 443, // eslint-disable-line no-magic-numbers
1313
API_VERSION: process.env.API_VERSION || 'v1',
1414
LOG_LEVEL: process.env.LOG_LEVEL || 'debug',
1515
SESSION_SECRET: process.env.SESSION_SECRET || 'kjsdfkj34857',

src/front/src/app/projects/project.service.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,18 @@ angular.module('topcoderX')
185185
}
186186
return $http({
187187
method: 'GET',
188-
url: $rootScope.appConfig.TOPCODER_VALUES[$rootScope.appConfig.TOPCODER_ENV].TC_API_V5_URL + '/standardized-sills/skills/autocomplete',
188+
url: $rootScope.appConfig.TOPCODER_VALUES[$rootScope.appConfig.TOPCODER_ENV].TC_API_V5_URL + '/standardized-skills/skills/autocomplete',
189189
params: {
190190
term: searchQuery,
191191
},
192192
headers: {
193193
'Content-Type': 'application/json',
194194
Authorization: 'Bearer ' + AuthService.getTokenV3(),
195195
},
196+
})
197+
.then((response) => {
198+
response.data = response.data.map((item) => ({id: item.id, name: item.name}));
199+
return response;
196200
});
197201
};
198202
return ProjectService;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy