From 2bf1ef6994f65302686652594508d6b2845bd6c4 Mon Sep 17 00:00:00 2001 From: Paolo Chillari Date: Fri, 27 May 2022 11:28:05 +0100 Subject: [PATCH] chore: use mailchimp provider in crons (#1368) --- .env.tpl | 1 + packages/cron/src/bin/storage.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.tpl b/.env.tpl index 43db45831e..ef8279011b 100644 --- a/.env.tpl +++ b/.env.tpl @@ -47,6 +47,7 @@ NEXT_PUBLIC_ENV=dev ## ---- cron ------------------------------------------------------------------ CLUSTER_IPFS_PROXY_API_URL=http://127.0.0.1:9095/api/v0/ +EMAIL_PROVIDER=dummy ## ---- pinpin ---------------------------------------------------------------- diff --git a/packages/cron/src/bin/storage.js b/packages/cron/src/bin/storage.js index 439f5aa543..07f0a83499 100755 --- a/packages/cron/src/bin/storage.js +++ b/packages/cron/src/bin/storage.js @@ -1,13 +1,13 @@ #!/usr/bin/env node import { getDBClient } from '../lib/utils.js' -import { EmailService, EMAIL_PROVIDERS } from '../lib/email/service.js' +import { EmailService } from '../lib/email/service.js' import { checkStorageUsed } from '../jobs/storage.js' import { envConfig } from '../lib/env.js' async function main () { const db = getDBClient(process.env) - const emailService = new EmailService({ db, provider: EMAIL_PROVIDERS.dummy }) + const emailService = new EmailService({ db }) await checkStorageUsed({ db, emailService }) }