diff --git a/src/routes/repository.ts b/src/routes/repository.ts index def0a29..a52b51a 100644 --- a/src/routes/repository.ts +++ b/src/routes/repository.ts @@ -615,14 +615,14 @@ router.get('/interface/list', async (ctx) => { }) router.get('/repository/defaultVal/get/:id', async (ctx) => { - const repositoryId: number = ctx.params.id + const repositoryId: number = +ctx.params.id ctx.body = { data: await DefaultVal.findAll({ where: { repositoryId } }) } }) router.post('/repository/defaultVal/update/:id', async (ctx) => { - const repositoryId: number = ctx.params.id + const repositoryId: number = +ctx.params.id if (!await AccessUtils.canUserAccess(ACCESS_TYPE.REPOSITORY_SET, ctx.session.id, repositoryId)) { ctx.body = Consts.COMMON_ERROR_RES.ACCESS_DENY return diff --git a/src/service/mail.ts b/src/service/mail.ts index 85d3e5e..597cf66 100644 --- a/src/service/mail.ts +++ b/src/service/mail.ts @@ -14,7 +14,7 @@ export default class MailService { if (error) { reject(error) } else { - resolve(info.response) + resolve(info.messageId) } }) } @@ -41,7 +41,7 @@ export default class MailService { if (error) { reject(error) } else { - resolve(info.response) + resolve(info.messageId) } }) }