diff --git a/package-lock.json b/package-lock.json index d1dd0aa..addfdb0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/database", - "version": "4.60.0", + "version": "4.61.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/database", - "version": "4.60.0", + "version": "4.61.0", "license": "MIT", "dependencies": { "@faker-js/faker": "^8.4.1", diff --git a/package.json b/package.json index 5bb32b8..cd3daf6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/database", - "version": "4.60.0", + "version": "4.61.0", "description": "The Athenna database handler for SQL/NoSQL.", "license": "MIT", "author": "João Lenon ", diff --git a/src/commands/MakeCrudCommand.ts b/src/commands/MakeCrudCommand.ts index 2e8178b..7c3bf00 100644 --- a/src/commands/MakeCrudCommand.ts +++ b/src/commands/MakeCrudCommand.ts @@ -22,7 +22,7 @@ export class MakeCrudCommand extends BaseCommand { @Option({ default: false, - signature: '--is-mongo', + signature: '--mongo', description: 'Define if CRUD will use Mongo as database. Migration will be skipped and "id" will be defined as string.' }) diff --git a/templates/crud-controller-test.edge b/templates/crud-controller-test.edge index 4da05df..ee2bd14 100644 --- a/templates/crud-controller-test.edge +++ b/templates/crud-controller-test.edge @@ -61,7 +61,9 @@ export default class {{ namePascal }} extends BaseHttpTest { @Test() public async shouldThrowNotFoundExceptionIfUpdatingA{{ crudNamePascal }}WithAnIdThatDoesNotExist({ request }: Context) { - const response = await request.put('/{{ crudNameLowerPlural }}/not-found') + const response = await request.put('/{{ crudNameLowerPlural }}/not-found', { + body: { {{{ updateBody }}} } + }) response.assertStatusCode(404) }