Commit 9ac300e5 authored by wu-lee's avatar wu-lee

lib/email-templates.js - rename as lib/templates.js

So it isn't just for email
parent b8ff4c44
'use strict';
const express = require('express');
const fs = require('fs');
const emailTemplates = require('./lib/email-templates.js');
const templates = require('./lib/templates.js');
const metalsmith = require('./metalsmith.js');
const email = require('./lib/email.js');
const git = require('./lib/git.js')({});
......@@ -134,7 +134,7 @@ app.post('/registration', (req, res) => {
subject: sendConfig.notification,
};
try {
const html = emailTemplates.notification(templateContext);
const html = templates.notification(templateContext);
send(notificationConfig,
html,
req.body)
......@@ -152,7 +152,7 @@ app.post('/registration', (req, res) => {
subject: sendConfig.acknowledgement,
};
try {
const html = emailTemplates.acknowledgement(templateContext);
const html = templates.acknowledgement(templateContext);
submitlog.info(`emailing registration acknowledgement to ${acknowledgementConfig.to}: `);
send(acknowledgementConfig,
html)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment