@trawlme/cli 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/scraps.js +3 -1
- package/package.json +1 -1
package/dist/commands/scraps.js
CHANGED
|
@@ -715,7 +715,9 @@ export function attachDataCommand(parent, attachOpts = {}) {
|
|
|
715
715
|
reportDataState(`Last run failed — see: trawl data ${id} --errors`, 1, 'run_failed', opts.json);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
|
-
const detail = await api.
|
|
718
|
+
const detail = await api.getLongRunning(`/api/historys/${last._id}`, {
|
|
719
|
+
timeoutMs: LONG_RUN_TIMEOUT_MS,
|
|
720
|
+
});
|
|
719
721
|
let items;
|
|
720
722
|
if (typeof detail?.data === 'string' && detail.data) {
|
|
721
723
|
try {
|