@trudb/tru-common-lib 0.2.505 → 0.2.506
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.
|
@@ -8185,7 +8185,7 @@ class TruDataChangeParser {
|
|
|
8185
8185
|
this.addEntity = null;
|
|
8186
8186
|
this.getLatestResults = null;
|
|
8187
8187
|
}
|
|
8188
|
-
constructor(connection, appEnviroment, user, dataContext, globalDataContext, entity, tableName, addEntity, getLatestResults, getLatestQuery, contextFilters, expandPaths, isLoaded, modelTypeLookup, modelPropertyLookup) {
|
|
8188
|
+
constructor(connection, appEnviroment, user, dataContext, globalDataContext, entity, tableName, addEntity, getLatestResults, getLatestQuery, contextFilters, expandPaths, isLoaded, modelTypeLookup, modelPropertyLookup, destroyParser = null) {
|
|
8189
8189
|
this.appEnvionment = appEnviroment;
|
|
8190
8190
|
this.user = user;
|
|
8191
8191
|
this.dataContext = dataContext;
|
|
@@ -8203,6 +8203,7 @@ class TruDataChangeParser {
|
|
|
8203
8203
|
connection.on("change", (payload) => {
|
|
8204
8204
|
this.update(payload);
|
|
8205
8205
|
});
|
|
8206
|
+
destroyParser = this.destroy;
|
|
8206
8207
|
}
|
|
8207
8208
|
findEntityInCache = (change) => {
|
|
8208
8209
|
var entityAccessor = this.dataContext?.entityAccess();
|