Skip to content

Commit

Permalink
style: Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
freezy committed May 16, 2019
1 parent 08485bd commit dbaf9dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/common/slackbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export class SlackBot {
username: botName,
icon_url: 'https://github.com/vpdb/website/raw/master/src/static/favicon/android-chrome-256x256.png',
mrkdwn: true,
text: message
text: message,
});
} catch (err) {
logger.error(err, 'Error sending raw message to slack.');
Expand Down
2 changes: 1 addition & 1 deletion src/app/media/medium.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import { Types } from 'mongoose';

import { acl } from '../common/acl';
import { Api } from '../common/api';
import { apiCache } from '../common/api.cache';
import { ApiError } from '../common/api.error';
import { logger } from '../common/logger';
import { Context } from '../common/typings/context';
import { state } from '../state';
import { apiCache } from '../common/api.cache';

export class MediumApi extends Api {

Expand Down
5 changes: 2 additions & 3 deletions src/app/profile/profile.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

import { assign, pick, uniq, isString } from 'lodash';
import { assign, isString, pick, uniq } from 'lodash';
import randomString from 'randomstring';

import { acl } from '../common/acl';
Expand Down Expand Up @@ -280,7 +280,7 @@ export class ProfileApi extends Api {
password_reset: {
token,
expires_at: new Date(Date.now() + 86400000), // 1d valid
}
},
} }).exec();

// log
Expand All @@ -294,7 +294,6 @@ export class ProfileApi extends Api {
this.success(ctx, { message: 'Email sent.' });
}


// send password reset mail
this.noAwait(async () => {
await mailer.resetPasswordRequest(ctx.state, user, email, token);
Expand Down
2 changes: 1 addition & 1 deletion src/app/users/user.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ userSchema.methods.getProviderNames = function(): string[] {
default:
const ips = config.vpdb.passport.ipboard.find(i => i.id === providerId);
if (ips) {
names.push(ips.name)
names.push(ips.name);
}
break;
}
Expand Down

0 comments on commit dbaf9dd

Please sign in to comment.