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;
});
notificationConfig.push({
...notificationObject,
fields: { ...notificationObject },
enabled: true,
id,
});
Promise.all(
adapter.send({
try {
await adapter.send({
serviceName: 'TestCall',
newListings: [
{
@@ -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) => {