Skip to content

Commit 984b59a

Browse files
committed
minor README refactoring
1 parent 19e7f2c commit 984b59a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,15 @@ You can modify the script to use any other API you like or debug-step through th
5858
An example configuration to add the API Mail Adapter to Parse Server could look like this:
5959
6060
```js
61-
// Declare a mail client
62-
const formData = require("form-data");
6361
const Mailgun = require("mailgun.js");
62+
const formData = require("form-data");
63+
const { ApiPayloadConverter } = require("parse-server-api-mail-adapter");
64+
65+
// Configure mail client
6466
const mailgun = new Mailgun(formData);
65-
const mailgunClient = mailgun.client({
66-
username: "api",
67-
key: process.env.MAILGUN_API_KEY,
68-
});
67+
const mailgunClient = mailgun.client({ username: "api", key: process.env.MAILGUN_API_KEY });
6968
const mailgunDomain = process.env.MAILGUN_DOMAIN;
7069
71-
const { ApiPayloadConverter } = require("parse-server-api-mail-adapter");
72-
7370
// Configure Parse Server
7471
const server = new ParseServer({
7572
...otherServerOptions,

0 commit comments

Comments
 (0)