Commit 8b001c12 authored by David Björkheim's avatar David Björkheim
Browse files

DEICH-5779: Remove unused code

parent 89300d58
......@@ -16,9 +16,6 @@ mailchimp.setConfig({
server: process.env.MAILCHIMP_SERVER || "us1"
});
/* function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
} */
async function ping() {
// Health check
......@@ -39,29 +36,6 @@ async function getList(listName) {
throw new Error(`List '${listName}' was not found`);
}
/* async function run() {
// Health check
const response = await mailchimp.ping.get();
logger.debug("Ping", response);
// Get list
const { lists } = await mailchimp.lists.getAllLists();
const deichmanList = lists.filter((l) => l.name == "Deichman")[0];
//logger.debug("List", deichmanList);
// Get all members in that list
const { members } = await mailchimp.lists.getListMembersInfo(deichmanList.id);
//logger.debug("Members in list", members);
await updateEmail(
mailchimp,
deichmanList.id,
"torstein.nicolaysen@gmail.com",
"torstein.nicolaysen@deichman.no",
new Date() // now
// new Date("2021-03-19T14:14:43+00:00")
);
} */
/**
* @param {Object} client MailChimp client
......
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