Skip to content

Commit 3004be7

Browse files
committed
Update src/resource_clients/run.ts
1 parent ddbff6b commit 3004be7

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ crawlee_storage
2727
storage
2828
.turbo
2929
changelog.md
30+
config.bat

src/resource_clients/run.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,12 @@ export class RunClient extends ResourceClient {
305305
private async getActorRedirectLog(): Promise<Log> {
306306
// Get actor name and run id
307307
const runData = await this.get();
308-
const runId = runData ? `${runData.id ?? ''}` : '';
308+
const runId = runData?.id ?? '';
309309

310310
const actorId = runData?.actId ?? '';
311311
const actorData = (await this.apifyClient.actor(actorId).get()) || { name: '' };
312312

313-
const actorName = runData ? (actorData.name ?? '') : '';
313+
const actorName = actorData?.name ?? '';
314314
const name = [actorName, `runId:${runId}`].filter(Boolean).join(' ');
315315

316316
return new Log({ level: LEVELS.DEBUG, prefix: `${name} -> `, logger: new LoggerActorRedirect() });

website/babel.config.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)