Skip to content

Commit

Permalink
attempt fix mongoose
Browse files Browse the repository at this point in the history
  • Loading branch information
victorzheng02 committed Apr 21, 2024
1 parent 4913fd3 commit ca38a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 2 additions & 7 deletions backend/emails/emails.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { EMAIL_RECIPIENTS } = require('../models/constants')
const { sendEmail } = require('../service/sendEmail')
const { getUserByUID } = require('../service/users.service')

const FINANCE_GROUP_EMAIL = '[email protected]'
const DivisionEmails = {
software: '[email protected]',
mechanical: '[email protected]',
Expand All @@ -15,13 +16,7 @@ const currencyFormatter = new Intl.NumberFormat('en-CA', {
})

const getEmailToSection = async (reporter_id, recipients) => {
const emailToSet = new Set(
process.env.WATO_FINANCE_EMAIL_RECIPIENTS?.split(',') || [
'[email protected]',
'[email protected]',
'[email protected]',
]
)
const emailToSet = new Set([FINANCE_GROUP_EMAIL])

if (recipients.includes(EMAIL_RECIPIENTS.admin)) {
// TODO: use ADMIN_IDENTIFIERS (rename to ADMIN_EMAILS) after migrating to new onboarding data
Expand Down
2 changes: 0 additions & 2 deletions backend/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ app.use(express.json())

const uri = process.env.WATO_FINANCE_ATLAS_URI
mongoose.connect(uri, {
useNewUrlParser: true,
useUnifiedTopology: true,
socketTimeoutMS: 1000 * 20,
connectTimeoutMS: 1000 * 20,
})
Expand Down

0 comments on commit ca38a6b

Please sign in to comment.