crud-api-express 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23,8 +23,6 @@ class CrudController {
23
23
  this.router.post(path, applyMiddleware(async (req, res) => {
24
24
  const method = 'POST';
25
25
  try {
26
- console.log("Request:", req);
27
- console.log("Request body:", req.body);
28
26
  const result = await this.model.create(req.body);
29
27
  if (options.relatedModel && options.relatedMethods?.includes('POST')) {
30
28
  await options.relatedModel.create({ [options.relatedField]: result._id, ...req.body });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crud-api-express",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -50,8 +50,6 @@ class CrudController<T extends Document> {
50
50
  this.router.post(path, applyMiddleware(async (req, res) => {
51
51
  const method = 'POST';
52
52
  try {
53
- console.log("Request:", req);
54
- console.log("Request body:", req.body);
55
53
  const result: any = await this.model.create(req.body);
56
54
  if (options.relatedModel && options.relatedMethods?.includes('POST')) {
57
55
  await options.relatedModel.create({ [options.relatedField!]: result._id, ...req.body });