|
|
@ -9,6 +9,8 @@ import FormViewColumn from '../../../noco-models/FormViewColumn'; |
|
|
|
import GalleryViewColumn from '../../../noco-models/GalleryViewColumn'; |
|
|
|
import GalleryViewColumn from '../../../noco-models/GalleryViewColumn'; |
|
|
|
import Project from '../../../noco-models/Project'; |
|
|
|
import Project from '../../../noco-models/Project'; |
|
|
|
import Column from '../../../noco-models/Column'; |
|
|
|
import Column from '../../../noco-models/Column'; |
|
|
|
|
|
|
|
import Filter from '../../../noco-models/Filter'; |
|
|
|
|
|
|
|
import Sort from '../../../noco-models/Sort'; |
|
|
|
|
|
|
|
|
|
|
|
export default async (req, res, next) => { |
|
|
|
export default async (req, res, next) => { |
|
|
|
try { |
|
|
|
try { |
|
|
@ -70,6 +72,12 @@ export default async (req, res, next) => { |
|
|
|
} else if (params.columnId) { |
|
|
|
} else if (params.columnId) { |
|
|
|
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) { |
|
|
|
|
|
|
|
const filter = await Filter.get(params.filterId); |
|
|
|
|
|
|
|
req.ncProjectId = filter?.project_id; |
|
|
|
|
|
|
|
} else if (params.sortId) { |
|
|
|
|
|
|
|
const sort = await Sort.get(params.sortId); |
|
|
|
|
|
|
|
req.ncProjectId = sort?.project_id; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const user = await new Promise((resolve, _reject) => { |
|
|
|
const user = await new Promise((resolve, _reject) => { |
|
|
|