Change USE_LDAP to only detect true
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Jared He 2021-10-25 20:18:10 -05:00
parent 6c0879c4b3
commit 06cd286956
1 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,10 @@ export async function getMembers(
}
let members: Member[] = [];
if (process.env.USE_LDAP !== undefined && process.env.USE_LDAP === "true") {
if (
process.env.USE_LDAP !== undefined &&
process.env.USE_LDAP.toLowerCase() === "true"
) {
const url = "ldap://ldap1.csclub.uwaterloo.ca";
const searchDN = "ou=People,dc=csclub,dc=uwaterloo,dc=ca";
const client = new Client({