feat: dev fix new version bug

common
Bosn 4 years ago
parent 80fdcff6c1
commit 483ee492ea

@ -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

@ -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)
}
})
}

Loading…
Cancel
Save