Skip to content

Commit

Permalink
fix(workers): emailSender not properly disabled if gmail info not set
Browse files Browse the repository at this point in the history
  • Loading branch information
PLhery committed Jun 18, 2023
1 parent 7c27605 commit 39ead5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unfollow-ninja-server/src/utils/emailSender.ts
Expand Up @@ -12,7 +12,7 @@ if (auth) {
auth.setCredentials({ refresh_token: process.env.GOOGLE_REFRESH_TOKEN });
}

const client = google.gmail({ version: 'v1', auth });
const client = auth && google.gmail({ version: 'v1', auth });

const stripe = process.env.STRIPE_SK
? new Stripe(process.env.STRIPE_SK, {
Expand Down

0 comments on commit 39ead5a

Please sign in to comment.