Skip to content

Commit 0373430

Browse files
committed
Oops, negation required
1 parent 9f7693b commit 0373430

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

examples/nm/change-member-emails.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)