updading dependencies | fixing notification-try button

This commit is contained in:
orangecoding
2021-03-28 14:34:32 +02:00
parent a1ab1f8dc6
commit 0f27429fe0
3 changed files with 1218 additions and 857 deletions

View File

@@ -20,12 +20,13 @@ notificationAdapterRouter.post('/try', async (req, res) => {
notificationObject[key] = fields[key].value; notificationObject[key] = fields[key].value;
}); });
notificationConfig.push({ notificationConfig.push({
...notificationObject, fields: { ...notificationObject },
enabled: true, enabled: true,
id, id,
}); });
Promise.all(
adapter.send({ try {
await adapter.send({
serviceName: 'TestCall', serviceName: 'TestCall',
newListings: [ newListings: [
{ {
@@ -38,12 +39,12 @@ notificationAdapterRouter.post('/try', async (req, res) => {
], ],
notificationConfig, notificationConfig,
jobKey: 'TestJob', 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) => { notificationAdapterRouter.get('/', async (req, res) => {

View File

@@ -51,22 +51,22 @@
"Firefox ESR" "Firefox ESR"
], ],
"dependencies": { "dependencies": {
"@rematch/core": "^1.4.0", "@rematch/core": "2.0.1",
"@rematch/loading": "^1.2.1", "@rematch/loading": "2.0.1",
"@sendgrid/mail": "7.4.2", "@sendgrid/mail": "7.4.2",
"axios": "^0.21.1", "axios": "^0.21.1",
"body-parser": "1.19.0", "body-parser": "1.19.0",
"cookie-session": "^1.4.0", "cookie-session": "^1.4.0",
"handlebars": "4.7.6", "handlebars": "4.7.7",
"highcharts": "^8.2.2", "highcharts": "9.0.1",
"highcharts-react-official": "^3.0.0", "highcharts-react-official": "^3.0.0",
"lowdb": "1.0.0", "lowdb": "1.0.0",
"markdown": "^0.5.0", "markdown": "^0.5.0",
"nanoid": "^3.1.20", "nanoid": "^3.1.22",
"node-mailjet": "3.3.1", "node-mailjet": "3.3.1",
"react": "17.0.1", "react": "17.0.2",
"react-dom": "17.0.1", "react-dom": "17.0.2",
"react-redux": "7.2.2", "react-redux": "7.2.3",
"react-router": "5.2.0", "react-router": "5.2.0",
"react-router-dom": "5.2.0", "react-router-dom": "5.2.0",
"react-switch": "^6.0.0", "react-switch": "^6.0.0",
@@ -74,32 +74,32 @@
"redux-thunk": "2.3.0", "redux-thunk": "2.3.0",
"request-x-ray": "0.1.4", "request-x-ray": "0.1.4",
"restana": "4.8.1", "restana": "4.8.1",
"semantic-ui-react": "2.0.2", "semantic-ui-react": "2.0.3",
"serve-static": "^1.14.1", "serve-static": "^1.14.1",
"slack": "11.0.2", "slack": "11.0.2",
"tg-yarl": "1.3.0", "tg-yarl": "1.3.0",
"x-ray": "2.3.4" "x-ray": "2.3.4"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.12.10", "@babel/core": "7.13.13",
"@babel/preset-env": "7.12.11", "@babel/preset-env": "7.13.12",
"@babel/preset-react": "7.12.10", "@babel/preset-react": "7.13.13",
"babel-eslint": "10.1.0", "babel-eslint": "10.1.0",
"babel-loader": "8.2.2", "babel-loader": "8.2.2",
"chai": "4.2.0", "chai": "4.3.4",
"clean-webpack-plugin": "3.0.0", "clean-webpack-plugin": "3.0.0",
"copy-webpack-plugin": "6.3.0", "copy-webpack-plugin": "6.3.0",
"css-loader": "5.0.1", "css-loader": "5.0.1",
"eslint": "7.17.0", "eslint": "7.23.0",
"eslint-config-prettier": "7.1.0", "eslint-config-prettier": "7.1.0",
"eslint-plugin-react": "7.22.0", "eslint-plugin-react": "7.23.1",
"file-loader": "6.2.0", "file-loader": "6.2.0",
"history": "5.0.0", "history": "5.0.0",
"husky": "4.3.8", "husky": "4.3.8",
"less": "4.1.0", "less": "4.1.1",
"less-loader": "7.2.1", "less-loader": "7.2.1",
"lint-staged": "10.5.3", "lint-staged": "10.5.4",
"mocha": "8.2.1", "mocha": "8.3.2",
"prettier": "2.2.1", "prettier": "2.2.1",
"proxyquire": "2.1.3", "proxyquire": "2.1.3",
"redux-logger": "3.0.6", "redux-logger": "3.0.6",

2022
yarn.lock

File diff suppressed because it is too large Load Diff