Skip to content

Commit 1cda08a

Browse files
committed
修复email配置文件的读取问题
1 parent dcdda7c commit 1cda08a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/email.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const nodemailer = require('nodemailer')
2-
const fs = require('fs/promises')
2+
const fs = require('fs')
33
const path = require('path')
44

55
const config = require('../config')
@@ -9,7 +9,7 @@ async function getEmailConfig(name, tag) {
99
const file = path.join(__dirname, '..', 'dockerfiles', name, tag, 'email.js')
1010

1111
try {
12-
await fs.access(file, fs.constants.R_OK)
12+
await fs.promises.access(file, fs.constants.R_OK)
1313
logger.log('[Email Config]', 'can access')
1414
} catch (err) {
1515
logger.log('[Email Config]', 'can not access', err)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aliyun-docker-trigger",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "",
55
"main": "index.js",
66
"author": "",

0 commit comments

Comments
 (0)