From 483ee492ea4d0fd9170af3bd477a78b4d163f380 Mon Sep 17 00:00:00 2001 From: Bosn Date: Wed, 7 Jul 2021 09:25:41 +0800 Subject: [PATCH] feat: dev fix new version bug --- src/routes/repository.ts | 4 ++-- src/service/mail.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) } }) }