Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
msathieu committed May 23, 2024
1 parent b9119fc commit 061dd0c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/ManageCourse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import adminLoader from "../dataloaders/AdminLoader.ts";
async function get_teachers(current_teachers: { name: string, email: string, id: number }[]) {
const data = await adminLoader(); // Replace this with your actual data fetching logic
const users = data.users.filter((user) => user.user_roles.includes("TEACHER"));
console.log(users)
return users.map((user) => ({
name: user.user_name,
email: user.user_email,
Expand Down
1 change: 0 additions & 1 deletion frontend/src/utils/api/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export function modify_language(language: string): void {
}

export function modify_roles(userId: number, roles: string[]): void {
console.log(JSON.stringify(roles))
void apiFetch(`/users/${userId}?roles=${JSON.stringify({roles})}`, {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
Expand Down

0 comments on commit 061dd0c

Please sign in to comment.