Skip to content

Commit

Permalink
Merge pull request #81 from impulsonetwork/dev
Browse files Browse the repository at this point in the history
Dev into Master
  • Loading branch information
lazaroalvarenga authored Nov 19, 2018
2 parents e439371 + be83511 commit f9191f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<img src="https://impulso.network/assets/images/impulsonetwork-logo.svg" style="width: 350px">

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/6b19092045904984b19c4775927d10b1)](https://app.codacy.com/app/impulsonetwork/atena?utm_source=github.com&utm_medium=referral&utm_content=impulsonetwork/atena&utm_campaign=Badge_Grade_Settings)
[![Build Status](https://dev.azure.com/impulsonetwork/Atena/_apis/build/status/impulsonetwork.atena)](https://dev.azure.com/impulsonetwork/Atena/_build/latest?definitionId=3)
[![Website](https://img.shields.io/website-up-down-green-red/http/shields.io.svg?label=about)](http://impulso.network)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
Expand Down
5 changes: 4 additions & 1 deletion config/coreteam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ members:
- U90418USW
- UATDAFP9T
- UCV6RPQRL
- UCLFL0K2A
- UD65U3S1H
- UCVTS7KPU
admins:
- UB348CP6Z
- UCJA2A8Q5
- UCJA2A8Q5
4 changes: 2 additions & 2 deletions controllers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const find = async (userId, isCoreTeam = false) => {
slackId: userId,
isCoreTeam: isCoreTeam
}).exec();
result.score = parseInt(result.score);
result.score = result.score.toFixed(1);

return result || _throw("Error finding a specific user");
};
Expand All @@ -119,7 +119,7 @@ export const findAll = async (isCoreTeam = false, limit = 20) => {
.limit(limit)
.exec();
result.map(user => {
user.score = parseInt(user.score);
user.score = user.score.toFixed(1);
});

return result || _throw("Error finding all users");
Expand Down

0 comments on commit f9191f8

Please sign in to comment.