Browse Source

add project Id with filterparent requests

Signed-off-by: Vijay Kumar Rathore <professional.vijay8492@gmail.com>
pull/4320/head
Vijay Kumar Rathore 2 years ago
parent
commit
29b2e91e3c
  1. 3
      packages/nocodb/src/lib/meta/helpers/extractProjectIdAndAuthenticate.ts

3
packages/nocodb/src/lib/meta/helpers/extractProjectIdAndAuthenticate.ts

@ -75,6 +75,9 @@ export default async (req, res, next) => {
} else if (params.filterId) {
const filter = await Filter.get(params.filterId);
req.ncProjectId = filter?.project_id;
} else if (params.filterParentId) {
const filter = await Filter.get(params.filterParentId);
req.ncProjectId = filter?.project_id;
} else if (params.sortId) {
const sort = await Sort.get(params.sortId);
req.ncProjectId = sort?.project_id;

Loading…
Cancel
Save