Skip to content

Commit

Permalink
Remove console log statements from various components and services fo…
Browse files Browse the repository at this point in the history
…r cleaner code
  • Loading branch information
austenstone committed Nov 21, 2024
1 parent 2731d1c commit 0a0ba0b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions backend/src/controllers/seats.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ class SeatsController {
async getActivityTotals(req: Request, res: Response): Promise<void> {
try {
const totals = await SeatsService.getAssigneesActivityTotals();
console.log('totals', totals);
res.status(200).json(totals);
} catch (error) {
console.log(error)
res.status(500).json(error);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export class ActiveUsersChartComponent {
pointFormat: '<span style="padding:0">{point.y: .1f} hours</span>',
headerFormat: '',
formatter: function () {
console.log(this);
const hours = (this.y || 0) / (1000 * 60 * 60); // Convert ms to hours
return `<span style="padding:0">@${this.key}</span><br>
<span style="padding:0">${hours.toFixed(1)} hours</span>`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ export class CopilotDashboardComponent implements OnInit {

this.seatService.getActivityTotals().subscribe(totals => {
Object.keys(totals).forEach((key, index) => index > 10 ? delete totals[key] : null);
console.log(totals)
this.activityTotals = totals;
});

Expand Down
1 change: 0 additions & 1 deletion frontend/src/app/main/main.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export class MainComponent {
});

this.installation = this.setupService.installation;
console.log('MainComponent constructor', this.installation);
}

toggleNavText(): void {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/app/services/seat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export class SeatService {
}

getSeat(id: number | string) {
console.log(id)
return this.http.get<Seat[]>(`${this.apiUrl}/${id}`);
}

Expand Down

0 comments on commit 0a0ba0b

Please sign in to comment.