File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,16 @@ const studentsDbId = '9d29ced8e9ba467c84e74fabbbbacc01';
5353 // Remove old user from workspace
5454 await removeMemberFromWorkspace ( oldMember . id ) ;
5555
56+ // const oldMember = {
57+ // id: '24bd872b-594c-8191-ad2a-0002d5e040a0',
58+ // email: oldEmail,
59+ // };
60+
61+ // const user = {
62+ // id: '245d872b-594c-81e4-afea-00028f30d6ab',
63+ // email: newEmail,
64+ // };
65+
5666 // Fetch the record in the student database by the previous email
5767 const {
5868 results : [ student ] ,
@@ -66,7 +76,7 @@ const studentsDbId = '9d29ced8e9ba467c84e74fabbbbacc01';
6676 } ,
6777 } ) ;
6878
69- if ( student ) {
79+ if ( ! student ) {
7080 return console . log ( RED_COLOR , `No student record by email <${ oldEmail } > found` ) ;
7181 }
7282
You can’t perform that action at this time.
0 commit comments