triangle-utils 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/misc.js +3 -2
- package/package.json +1 -1
- package/test.js +0 -0
package/misc.js
CHANGED
|
@@ -13,10 +13,11 @@ export function get_current_time(clients, milliseconds = false) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export async function send_email(clients, recipient, subject, text) {
|
|
16
|
+
console.log(clients)
|
|
16
17
|
for (let i = 0; i < 3; i++) {
|
|
17
18
|
try {
|
|
18
19
|
await clients.transporter.sendMail({
|
|
19
|
-
from: config.alerts_email,
|
|
20
|
+
from: clients.config.alerts_email,
|
|
20
21
|
to: recipient,
|
|
21
22
|
subject: subject,
|
|
22
23
|
text: text
|
|
@@ -30,7 +31,7 @@ export async function send_email(clients, recipient, subject, text) {
|
|
|
30
31
|
|
|
31
32
|
export async function admin_alert(clients, text) {
|
|
32
33
|
console.log("ADMIN ALERT:", text)
|
|
33
|
-
await send_email(clients.config.google_email, "ADMIN ALERT", text)
|
|
34
|
+
await send_email(clients, clients.config.google_email, "ADMIN ALERT", text)
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
export async function safe_run(clients, f) {
|
package/package.json
CHANGED
package/test.js
ADDED
|
File without changes
|