Skip to content

Commit

Permalink
Merge pull request #1467 from bitholla/testnet
Browse files Browse the repository at this point in the history
Testnet
  • Loading branch information
abeikverdi authored Jun 23, 2022
2 parents ece0416 + 8516e50 commit 44d4027
Show file tree
Hide file tree
Showing 88 changed files with 15,878 additions and 17,949 deletions.
12 changes: 6 additions & 6 deletions server/api/controllers/broker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const { loggerBroker } = require('../../config/logger');
const { INIT_CHANNEL } = require('../../constants')
const { INIT_CHANNEL } = require('../../constants');
const { publisher } = require('../../db/pubsub');
const toolsLib = require('hollaex-tools-lib');
const { errorMessageConverter } = require('../../utils/conversion');
Expand Down Expand Up @@ -47,7 +47,7 @@ const createBrokerPair = (req, res) => {
user_id,
min_size,
max_size,
increment_size,
increment_size
})
.then((data) => {
publisher.publish(INIT_CHANNEL, JSON.stringify({ type: 'refreshInit' }));
Expand All @@ -61,7 +61,7 @@ const createBrokerPair = (req, res) => {
);
return res.status(err.statusCode || 400).json({ message: errorMessageConverter(err) });
});
}
};

function updateBrokerPair(req, res) {
loggerBroker.verbose(
Expand Down Expand Up @@ -114,7 +114,7 @@ function deleteBrokerPair(req, res) {
toolsLib.broker.deleteBrokerPair(req.swagger.params.data.value.id)
.then((data) => {
publisher.publish(INIT_CHANNEL, JSON.stringify({ type: 'refreshInit' }));
return res.json({ message: "Successfully deleted broker pair." });
return res.json({ message: 'Successfully deleted broker pair.' });
})
.catch((err) => {
loggerBroker.error(
Expand Down Expand Up @@ -168,7 +168,7 @@ const executeBrokerDeal = (req, res) => {
side,
symbol,
price,
size,
size
} = req.swagger.params.data.value;

const userId = req.auth.sub.id;
Expand All @@ -190,7 +190,7 @@ const executeBrokerDeal = (req, res) => {
);
return res.status(err.statusCode || 400).json({ message: errorMessageConverter(err) });
});
}
};

module.exports = {
createBrokerPair,
Expand Down
2 changes: 1 addition & 1 deletion server/api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
swagger: "2.0"
info:
version: "2.3.5"
version: "2.3.6"
title: HollaEx Kit
host: api.hollaex.com
basePath: /v2
Expand Down
1,196 changes: 12 additions & 1,184 deletions server/db/migrations/20220331153221-update-email-field-network.js

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions server/db/migrations/20220620132835-add-turkish-mail.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use strict';
const TABLE = 'Statuses';
const COLUMN = 'email';

const turkish = JSON.stringify(require('../../mail/strings/tr.json'));

module.exports = {
async up(queryInterface) {
await queryInterface.sequelize.query(
`UPDATE public."${TABLE}"
SET ${COLUMN} = ${COLUMN} || '${turkish}'
`);
},

down: () => {
return new Promise((resolve) => {
resolve();
});
}
};
94 changes: 0 additions & 94 deletions server/mail/strings/ar.js

This file was deleted.

Loading

0 comments on commit 44d4027

Please sign in to comment.