Skip to content

Commit

Permalink
fix(lint): lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meriadec committed Oct 8, 2015
1 parent 81dcd4a commit 9cdb7bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions api/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import User from './user.model';
import Language from './language.model';

q.all([
User.sync(),
Language.sync(),
])
.then(() => { return Text.sync(); })
.catch(err => { console.log(err); });
User.sync(),
Language.sync(),
])
.then(() => { return Text.sync(); });

export default {

Expand Down
4 changes: 2 additions & 2 deletions api/services/user.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports.getById = id => {
};

exports.getByGithub = id => {
return User.findOne({ where: { githubId: id }});
return User.findOne({ where: { githubId: id } });
};

exports.updateOrCreate = (githubId, name, avatar) => {
Expand All @@ -20,6 +20,6 @@ exports.updateOrCreate = (githubId, name, avatar) => {
.then(user => {
if (user.banned) { throw new Error('You are banned from KeyCode.'); }
return user;
})
});

};

0 comments on commit 9cdb7bc

Please sign in to comment.