Procházet zdrojové kódy

:poop: I don't know why the config options changed on me

brian_tests
tomit4 před 2 roky
rodič
revize
e1cbacc560
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      backend/lib/services/user.js

+ 1
- 1
backend/lib/services/user.js Zobrazit soubor

9
 // Configuration for Brevo
9
 // Configuration for Brevo
10
 const Brevo = require('@getbrevo/brevo')
10
 const Brevo = require('@getbrevo/brevo')
11
 const apiInstance = new Brevo.TransactionalEmailsApi()
11
 const apiInstance = new Brevo.TransactionalEmailsApi()
12
-const apiKey = apiInstance.authentications.apiKey
12
+const apiKey = apiInstance.apiClient.authentications['api-key']
13
 apiKey.apiKey = process.env.BREVO_KEY
13
 apiKey.apiKey = process.env.BREVO_KEY
14
 const sendSmtpEmail = new Brevo.SendSmtpEmail()
14
 const sendSmtpEmail = new Brevo.SendSmtpEmail()
15
 
15
 

Načítá se…
Zrušit
Uložit