|
|
@ -73,7 +73,9 @@ export default async (req, res, next) => { |
|
|
|
const column = await Column.get({ colId: params.columnId }); |
|
|
|
const column = await Column.get({ colId: params.columnId }); |
|
|
|
req.ncProjectId = column?.project_id; |
|
|
|
req.ncProjectId = column?.project_id; |
|
|
|
} else if (params.filterId) { |
|
|
|
} else if (params.filterId) { |
|
|
|
const filter = await Filter.get(params.filterId); |
|
|
|
const filter = await Filter.get(params.filterId).then((f) => |
|
|
|
|
|
|
|
f?.getColumn() |
|
|
|
|
|
|
|
); |
|
|
|
req.ncProjectId = filter?.project_id; |
|
|
|
req.ncProjectId = filter?.project_id; |
|
|
|
} else if (params.filterParentId) { |
|
|
|
} else if (params.filterParentId) { |
|
|
|
const filter = await Filter.get(params.filterParentId); |
|
|
|
const filter = await Filter.get(params.filterParentId); |
|
|
|