@memberjunction/core
Advanced tools
Comparing version 2.20.1 to 2.20.2
@@ -352,3 +352,3 @@ "use strict"; | ||
event.baseEntity = this; | ||
event.payload = null; | ||
event.payload = payload; | ||
event.type = type; | ||
@@ -935,6 +935,15 @@ global_1.MJGlobal.Instance.RaiseEvent({ | ||
this.CheckPermissions(entityInfo_1.EntityPermissionType.Delete, true); // this will throw an error and exit out if we don't have permission | ||
// stash the old values for the event | ||
const oldVals = await this.GetDataObject({ | ||
oldValues: false, | ||
omitNullValues: false, | ||
omitEmptyStrings: false, | ||
excludeFields: null, | ||
includeRelatedEntityData: false, | ||
relatedEntityList: null | ||
}); | ||
if (await this.ProviderToUse.Delete(this, options, this.ActiveUser)) { | ||
// record deleted correctly | ||
this.RaiseEvent('delete', { OldValues: oldVals }); | ||
// wipe out the current data to flush out the DIRTY flags by calling NewRecord() | ||
this.RaiseEvent('delete', null); | ||
this.NewRecord(); // will trigger a new record event here too | ||
@@ -941,0 +950,0 @@ return true; |
{ | ||
"name": "@memberjunction/core", | ||
"version": "2.20.1", | ||
"version": "2.20.2", | ||
"description": "MemberJunction: Core Library including Metadata, Application, Entity Retrieval and Manipulation, and Utilities", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@memberjunction/global": "2.20.1", | ||
"@memberjunction/global": "2.20.2", | ||
"rxjs": "^7.8.1", | ||
@@ -25,0 +25,0 @@ "zod": "^3.23.8" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
618291
8911
+ Added@memberjunction/global@2.20.2(transitive)
- Removed@memberjunction/global@2.20.1(transitive)