Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude 'createManyBase' is not working #801

Open
davilopez90 opened this issue Aug 9, 2022 · 0 comments
Open

Exclude 'createManyBase' is not working #801

davilopez90 opened this issue Aug 9, 2022 · 0 comments

Comments

@davilopez90
Copy link

Bug Report

Current behavior

I'm running Nestjsx on a Nest.js project, as I've done in many others. But I'm not sure which library or version is breaking this, but the exclude 'createManyBase' is not working anymore, and the bulk endpoint is being exposed anyway.

Input Code

As always, I'm running this line in the main.ts:

CrudConfigService.load(CRUD_CONFIG);

This is my CRUD_CONFIG contant:

const CRUD_CONFIG: CrudGlobalConfig = {
    query: {
        maxLimit: ApiConfig.CRUD_CONFIG_MAX_LIMIT,
        cache: ApiConfig.CRUD_CONFIG_CACHE
    },
    routes: {
        exclude: ["createManyBase"]
    }
};

image

Expected behavior

The createMany endpoints should never be created.

Possible Solution

Not sure

Environment

    "@nestjs/swagger": "^6.0.4",
    "@nestjs/typeorm": "^9.0.0",
    "@nestjsx/crud": "^4.6.2",
    "@nestjsx/crud-typeorm": "^4.6.2",
    "ts-node": "^10.0.0",

Am I doing anything wrong? It has changed this since older versions? This is actually working for me but with olders versions (these ones):
"@nestjs/swagger": "^4.7.8",
"@nestjs/typeorm": "^7.1.5",
"@nestjsx/crud": "^4.6.2",
"@nestjsx/crud-typeorm": "^4.6.2",
"ts-node": "^9.1.1",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant