mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
shields update
This commit is contained in:
@@ -55,6 +55,7 @@ export class EmailService {
|
||||
try {
|
||||
await this.apiContacts.createContact({ email });
|
||||
await this.apiContacts.addContactToList(12, { emails: [email] })
|
||||
return true;
|
||||
} catch (ex) {
|
||||
console.error('ERROR ADDING CONTACT', ex);
|
||||
return false;
|
||||
|
||||
@@ -58,7 +58,7 @@ app.post('/send/invite/noaccount', express.json(), async (req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
app.post('/brevolist/add', express.json(), async (req, res) => {
|
||||
app.post('/send/brevolist/add', express.json(), async (req, res) => {
|
||||
try {
|
||||
const { email } = req.body;
|
||||
const ok = await EmailService.createContact(email);
|
||||
|
||||
Reference in New Issue
Block a user