|
|
@ -37,8 +37,7 @@ async function getEnabledWorkflowProcess (ctx) { |
|
|
|
async function basicDataAllProject (ctx) { |
|
|
|
try { |
|
|
|
const { models } = ctx.fs.dc; |
|
|
|
const { userId, pepUserId, userInfo, pepUserInfo } = ctx.fs.api |
|
|
|
console.log('userId', userId); |
|
|
|
|
|
|
|
const proRes = await models.ProjectCorrelation.findAndCountAll({ |
|
|
|
where: { |
|
|
|
del: false, |
|
|
@ -78,7 +77,7 @@ async function basicDataAllProject (ctx) { |
|
|
|
ctx.status = 200; |
|
|
|
ctx.body = list |
|
|
|
} catch (error) { |
|
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: error`); |
|
|
|
ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); |
|
|
|
ctx.status = 400; |
|
|
|
ctx.body = { |
|
|
|
message: typeof error == 'string' ? error : undefined |
|
|
|