Skip to content

Commit

Permalink
two ESLint edits
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Dec 19, 2019
1 parent 4345414 commit ca591f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/api/customer.js
Expand Up @@ -17,7 +17,7 @@ export const buyBook = ({ id, stripeToken }) =>
body: JSON.stringify({ id, stripeToken }),
});

export const addBookmark = data =>
export const addBookmark = (data) =>
sendRequest(`${BASE_PATH}/chapters/add-bookmark`, {
body: JSON.stringify(data),
});
3 changes: 2 additions & 1 deletion server/models/EmailTemplate.js
Expand Up @@ -64,7 +64,8 @@ async function insertTemplates() {
const count = await EmailTemplate.find({ name: t.name }).countDocuments();

if (count === 0) {
EmailTemplate.create(Object.assign({}, t, {
EmailTemplate.create(
Object.assign({}, t, {
message: t.message.replace(/\n/g, '').replace(/[ ]+/g, ' '),
}),
);
Expand Down

0 comments on commit ca591f4

Please sign in to comment.