Skip to content

Commit 7a23414

Browse files
committed
fix: remove temporary user token for TaaS API
1 parent 0dbe5cc commit 7a23414

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/events/projects/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ const eClient = util.getElasticSearchClient();
2222
* @return {Object} the job created
2323
*/
2424
const createTaasJob = async (data) => {
25-
// TODO uncomment when TaaS API supports M2M tokens
26-
// see https://github.com/topcoder-platform/taas-apis/issues/40
27-
// const token = await util.getM2MToken();
28-
const token = process.env.TAAS_API_TOKEN;
25+
const token = await util.getM2MToken();
2926
const headers = {
3027
'Content-Type': 'application/json',
3128
Authorization: `Bearer ${token}`,

0 commit comments

Comments
 (0)