Skip to content

Commit

Permalink
feat(api): queued bundle response for skipped bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
karlprieb authored and djwhitt committed Jan 29, 2025
1 parent c8490ed commit 351b0f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/routes/ar-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ arIoRouter.post(
return;
}

if (queuedBundle.status === 'skipped') {
res.json({ message: 'Bundle skipped' });
return;
}

res.json({ message: 'Bundle queued' });
} catch (error: any) {
res.status(500).send(error?.message);
Expand Down
2 changes: 1 addition & 1 deletion src/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ export async function queueBundle(
unbundleFilterId === previousUnbundleFilterId &&
indexFilterId === previousIndexFilterId
) {
log.debug('Skipping fully unbundled bundle', {
log.info('Skipping fully unbundled bundle', {
id: item.id,
});
return { status: 'skipped' };
Expand Down

0 comments on commit 351b0f2

Please sign in to comment.