Skip to content

Commit e584a72

Browse files
authored
Merge pull request #188 from CodeForBaltimore/revjtanton/issue-132
final v1.2.0
2 parents 2c7c9b1 + 7f2960b commit e584a72

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

src/email/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const sendMail = async (to, subject, html, text) => {
2727
text, // plain text body
2828
html // html body
2929
});
30-
console.log("Email sent: %s", info.messageId);
3130
} catch (e) {
3231
console.error(e);
3332
}
@@ -68,7 +67,7 @@ const sendContactCheckInEmail = async (info) => {
6867
nunjucks.render("contact_check_in_html.njk", { emailTitle, emailContents, entityLink }),
6968
nunjucks.render("contact_check_in_text.njk", { emailTitle, emailContents, entityLink })
7069
);
71-
console.log(info.email)
70+
7271
return true;
7372
}
7473
} catch (e) {

src/routes/entity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ router.put('/', async (req, res) => {
148148

149149
if (contacts) {
150150
for(const contact of contacts) {
151-
ec = {
151+
const ec = {
152152
entityId: entity.id,
153153
contactId: contact.id
154154
}

src/utils/index.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,17 @@ const loadCasbin = async () => {
4848
}
4949
}
5050
}
51-
} : { logging: false };
51+
} : '';
52+
const ConnectionOptions = dbUrl();
5253
const a = await SequelizeAdapter.newAdapter(
53-
{
54-
...dbUrl(),
55-
logging: false,
56-
dialect: 'postgres',
57-
dialectOptions
58-
}
54+
dbUrl()
5955
);
6056

6157
return await newEnforcer(casbinConf, a);
6258
}
6359

6460
/**
65-
* Checks a user login token.
61+
* Checks a user login token.`
6662
*
6763
* This validates a user token. If the token is invalid the request will immediately be rejected back with a 401.
6864
*
@@ -218,7 +214,6 @@ const validatePassword = pass => {
218214
digit: 1, // 0 through 9
219215
min: 8, // minumum number of characters
220216
}
221-
console.log(complexity.check(pass, options))
222217
return complexity.check(pass, options)
223218
}
224219

0 commit comments

Comments
 (0)