Settings Cache Refactor

This commit is contained in:
Wyatt Johnson
2018-05-07 14:27:00 -06:00
parent 7aa31b7cb2
commit 2b1108cd88
27 changed files with 209 additions and 260 deletions
+3 -3
View File
@@ -177,10 +177,10 @@ const changeUserPassword = async (ctx, oldPassword, newPassword) => {
await Users.changePassword(user.id, newPassword);
// Get some context for the email to be sent.
const { organizationName, organizationContactEmail } = await Settings.load([
const { organizationName, organizationContactEmail } = await Settings.select(
'organizationName',
'organizationContactEmail',
]);
'organizationContactEmail'
);
// Send the password change email.
await Users.sendEmail(user, {