Skip to content

Commit

Permalink
chore: upgrade to latest flow 256
Browse files Browse the repository at this point in the history
- fix code issues related to flow
  • Loading branch information
yoavniran committed Dec 8, 2024
1 parent b104024 commit 89667bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const getUpdatedRequest = (
.then((response: ResumeStartEventResponse | boolean) => {
let result;

const updatedData = typeof response === "boolean" ? (response === false ? { stop: true } : {}) : response;
const updatedData = typeof response === "boolean" ? (response === false ? { stop: true } : {}) : (response || {});

if (updatedData.stop) {
logger.debugLog(`tusSender.resume: received false from TUS RESUME_START event - cancelling resume attempt for item: ${item.id}`);
Expand Down

0 comments on commit 89667bf

Please sign in to comment.