Skip to content

Commit

Permalink
update timeout and error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
smalho01 committed Jan 15, 2025
1 parent 929761b commit 2c4c83a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hooks/hookResources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function handleHook(
const options = {
method: 'POST',
data: hook,
timeout: 10000,
timeout: 5000,
};
try {
console.log(url); //zzzz
Expand All @@ -116,6 +116,7 @@ export async function handleHook(
} catch (err) {
console.log('zzzz: error in forwardData call:');
console.log(err);
res.json({ cards: [] });
}
};
if (drugCode) {
Expand Down

0 comments on commit 2c4c83a

Please sign in to comment.