Skip to content

Commit

Permalink
Add log when no activities found
Browse files Browse the repository at this point in the history
  • Loading branch information
xballoy committed Oct 21, 2024
1 parent 18c9f84 commit 7c60cd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/coros/activity/query-activities.request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export class QueryActivitiesRequest extends BaseRequest<
async handle({ pageSize = 20, pageNumber = 1, from, to }: QueryActivitiesInput): Promise<QueryActivitiesOutput> {
const activities = await this.getActivities({ pageSize, pageNumber, from, to });

if(activities.length === 0) {
this.logger.log('No activities found.')
}

return {
count: activities.length,
activities,
Expand Down

0 comments on commit 7c60cd2

Please sign in to comment.