Skip to content

Commit f8cea2c

Browse files
authored
Merge pull request #19 from mongoosejs/codex/fix-tolowercase-usage-in-createchannel.js
Fix toLowerCase call in channel creation
2 parents 28ddb50 + dbdc9b3 commit f8cea2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

createChannel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ async function run() {
2222
}
2323
r1.question('public or private? ', async function(status) {
2424
console.log('status', status, typeof status, status.toLowerCase());
25-
if (status.toLowerCase == 'public') {
25+
if (status.toLowerCase() == 'public') {
2626
status = false;
2727
} else if (status.toLowerCase() == 'private') {
2828
status = true;

0 commit comments

Comments
 (0)