@webtypen/webframez-core 0.3.10 → 0.3.11

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.
@@ -367,7 +367,7 @@ class DataBuilder {
367
367
  }
368
368
  if (type.unmapped) {
369
369
  try {
370
- if (typeof type.schema.afterSave === "function") {
370
+ if (typeof type.schema.beforeSave === "function") {
371
371
  yield type.schema.beforeSave(req.body.data, req);
372
372
  }
373
373
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -450,7 +450,7 @@ export class DataBuilder {
450
450
 
451
451
  if (type.unmapped) {
452
452
  try {
453
- if (typeof type.schema.afterSave === "function") {
453
+ if (typeof type.schema.beforeSave === "function") {
454
454
  await type.schema.beforeSave(req.body.data, req);
455
455
  }
456
456
  } catch (e: any) {