Skip to content

Conversation

@Gamboster
Copy link

@Gamboster Gamboster commented Mar 28, 2019

Cleaning code for:
bchaddresstranslator.ts
blockchainexplorer.ts
blockchainmonitor.ts
emailservice.ts
fiatrateservice.ts
lock.ts
messagebroker.ts
notificationbroadcaster.ts
pushnotificationsservice.ts
server.ts
stats.ts

self.publicTxUrlTemplate = opts.emailOpts.publicTxUrlTemplate || {};
self.subjectPrefix = opts.emailOpts.subjectPrefix || '[Wallet service]';
self.from = opts.emailOpts.from;
console.log(this.templatePath);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let remove this line

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which I committed accidentally

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

var rejectors = _.map(data.rejectedBy, function(copayerId) {
return _.find(wallet.copayers, {
const rejectors = _.map(data.rejectedBy, (copayerId) => {
const copayer: any = _.find(wallet.copayers, {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why any?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed to use 'Copayer' properly

async.map(
recipientsList,
function(recipient, next) {
(recipient: any, next) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why any?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed to use a new 'Recipient' interface

}
};

function getCredentials(req) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know that this function should be converted to an arrow function if it's not using this

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the same, in this case I used arrow functions to declare all the functions with the same notation

rastajpa and others added 21 commits April 1, 2019 11:09
Fix (BWS Docs) - removed testnet in bitcore config requirement in README
[insight-previous] FIX: UI fixes for invalid txs
…Messages

Fix: add Deprecated server messages
@Gamboster Gamboster force-pushed the micahriggan/feature/bws-ts branch from 111562f to bbb764f Compare April 2, 2019 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants