Skip to content

Commit

Permalink
Removed console.logs from:
Browse files Browse the repository at this point in the history
- backend/src/api/users.ts
- frontend/src/components/ReadySetCyber/RSCRegisterForm.tsx
  • Loading branch information
hawkishpolicy committed Apr 3, 2024
1 parent 5cfd47a commit 675bbb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions backend/src/api/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -939,8 +939,7 @@ export const RSCRegister = wrapHandler(async (event) => {
userType: UserType.READY_SET_CYBER,
invitePending: true
};
console.log(JSON.stringify(newRSCUser));


Check failure on line 942 in backend/src/api/users.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
await connectToDatabase();

Check failure on line 943 in backend/src/api/users.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎`


Expand All @@ -962,8 +961,7 @@ export const RSCRegister = wrapHandler(async (event) => {
newRSCUser
);

Check failure on line 962 in backend/src/api/users.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `);⏎··`
await User.save(user);
console.log(JSON.stringify(user));
// Send email notification
// Send email notification
if (process.env.IS_LOCAL!) {

Check failure on line 965 in backend/src/api/users.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
console.log('Cannot send invite email while running on local.');

Check failure on line 966 in backend/src/api/users.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `····` with `······`
} else {

Check failure on line 967 in backend/src/api/users.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `··`
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/ReadySetCyber/RSCRegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ export const RSCRegisterForm: React.FC<{
email: values.email,
};
const registeredUser = await registerRSCUserPost(body);
console.log('registeredUser: ', registeredUser);
if (registeredUser !== undefined) {
console.log('User Registered Successfully');
setIsLoading(false);
Expand Down

0 comments on commit 675bbb3

Please sign in to comment.