Skip to content

Commit

Permalink
chore: use mailchimp provider in crons (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
flea89 authored May 27, 2022
1 parent eae21dd commit 2bf1ef6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ----------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions packages/cron/src/bin/storage.js
Original file line number Diff line number Diff line change
@@ -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 })
}

Expand Down

0 comments on commit 2bf1ef6

Please sign in to comment.