How to use the parse-server/lib/Adapters/Email/MailAdapter.default function in parse-server

To help you get started, we’ve selected a few parse-server examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sebsylvester / parse-server-mailgun / lib / MailgunAdapter.js View on Github external
*/

    }, {
        key: 'loadEmailTemplate',
        value: function loadEmailTemplate(path) {
            return new Promise(function (resolve, reject) {
                fs.readFile(path, function (err, data) {
                    if (err) reject(err);
                    resolve(data);
                });
            });
        }
    }]);

    return MailgunAdapter;
}(MailAdapter.default);

module.exports = MailgunAdapter;