Skip to content

Commit

Permalink
fix(code): improve error response handling of fetch call to post func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
JasonSooter committed Apr 17, 2023
1 parent 4b0effb commit 5866ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deployDestinationFunction.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ try {
/**
* Push to Function Instance
*/
let response;

try {
response = await fetch(
const response = await fetch(
`https://api.segmentapis.com/functions/${FUNCTION_ID}`,
{
method: 'PATCH',
Expand Down

0 comments on commit 5866ff1

Please sign in to comment.