mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
updading dependencies | fixing notification-try button
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user