Apply suggestions from code review

Co-authored-by: Vincenzo Scamporlino <vincenzos@spotify.com>
Signed-off-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
This commit is contained in:
Sebastian Poxhofer
2024-04-20 08:47:59 +02:00
committed by GitHub
parent 6f5a3a3ce5
commit c35ea7c8ec
@@ -162,7 +162,7 @@ export class UnprocessedEntitiesModule {
return res.json(
await this.unprocessed({
reason: 'failed',
owner: req.query.owner?.toString(),
owner: typeof req.query.owner === 'string' ? req.query.owner : undefined,
}),
);
})
@@ -170,7 +170,7 @@ export class UnprocessedEntitiesModule {
return res.json(
await this.unprocessed({
reason: 'pending',
owner: req.query.owner?.toString(),
owner: typeof req.query.owner === 'string' ? req.query.owner : undefined
}),
);
})