Skip to content

Commit

Permalink
updading dependencies | fixing notification-try button
Browse files Browse the repository at this point in the history
  • Loading branch information
orangecoding committed Mar 28, 2021
1 parent a1ab1f8 commit 0f27429
Show file tree
Hide file tree
Showing 3 changed files with 1,233 additions and 872 deletions.
17 changes: 9 additions & 8 deletions lib/api/routes/notificationAdapterRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ notificationAdapterRouter.post('/try', async (req, res) => {
notificationObject[key] = fields[key].value;
});
notificationConfig.push({
...notificationObject,
fields: { ...notificationObject },
enabled: true,
id,
});
Promise.all(
adapter.send({

try {
await adapter.send({
serviceName: 'TestCall',
newListings: [
{
Expand All @@ -38,12 +39,12 @@ notificationAdapterRouter.post('/try', async (req, res) => {
],
notificationConfig,
jobKey: 'TestJob',
})
)
.then(() => res.send())
.catch((error) => {
res.send(new Error(error));
});

res.send();
} catch (Exception) {
res.send(new Error(Exception));
}
});

notificationAdapterRouter.get('/', async (req, res) => {
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,55 +51,55 @@
"Firefox ESR"
],
"dependencies": {
"@rematch/core": "^1.4.0",
"@rematch/loading": "^1.2.1",
"@rematch/core": "2.0.1",
"@rematch/loading": "2.0.1",
"@sendgrid/mail": "7.4.2",
"axios": "^0.21.1",
"body-parser": "1.19.0",
"cookie-session": "^1.4.0",
"handlebars": "4.7.6",
"highcharts": "^8.2.2",
"handlebars": "4.7.7",
"highcharts": "9.0.1",
"highcharts-react-official": "^3.0.0",
"lowdb": "1.0.0",
"markdown": "^0.5.0",
"nanoid": "^3.1.20",
"nanoid": "^3.1.22",
"node-mailjet": "3.3.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-redux": "7.2.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-redux": "7.2.3",
"react-router": "5.2.0",
"react-router-dom": "5.2.0",
"react-switch": "^6.0.0",
"redux": "4.0.5",
"redux-thunk": "2.3.0",
"request-x-ray": "0.1.4",
"restana": "4.8.1",
"semantic-ui-react": "2.0.2",
"semantic-ui-react": "2.0.3",
"serve-static": "^1.14.1",
"slack": "11.0.2",
"tg-yarl": "1.3.0",
"x-ray": "2.3.4"
},
"devDependencies": {
"@babel/core": "7.12.10",
"@babel/preset-env": "7.12.11",
"@babel/preset-react": "7.12.10",
"@babel/core": "7.13.13",
"@babel/preset-env": "7.13.12",
"@babel/preset-react": "7.13.13",
"babel-eslint": "10.1.0",
"babel-loader": "8.2.2",
"chai": "4.2.0",
"chai": "4.3.4",
"clean-webpack-plugin": "3.0.0",
"copy-webpack-plugin": "6.3.0",
"css-loader": "5.0.1",
"eslint": "7.17.0",
"eslint": "7.23.0",
"eslint-config-prettier": "7.1.0",
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react": "7.23.1",
"file-loader": "6.2.0",
"history": "5.0.0",
"husky": "4.3.8",
"less": "4.1.0",
"less": "4.1.1",
"less-loader": "7.2.1",
"lint-staged": "10.5.3",
"mocha": "8.2.1",
"lint-staged": "10.5.4",
"mocha": "8.3.2",
"prettier": "2.2.1",
"proxyquire": "2.1.3",
"redux-logger": "3.0.6",
Expand Down
Loading

0 comments on commit 0f27429

Please sign in to comment.