@loomcore/api 0.0.19 → 0.0.20
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.
|
@@ -326,20 +326,10 @@ export class GenericApiService {
|
|
|
326
326
|
return transformedEntity;
|
|
327
327
|
}
|
|
328
328
|
stripSenderProvidedSystemProperties(doc) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
delete doc._created;
|
|
334
|
-
}
|
|
335
|
-
if (doc._createdBy) {
|
|
336
|
-
delete doc._createdBy;
|
|
337
|
-
}
|
|
338
|
-
if (doc._updated) {
|
|
339
|
-
delete doc._updated;
|
|
340
|
-
}
|
|
341
|
-
if (doc._updatedBy) {
|
|
342
|
-
delete doc._updatedBy;
|
|
329
|
+
for (const key in doc) {
|
|
330
|
+
if (Object.prototype.hasOwnProperty.call(doc, key) && key.startsWith('_')) {
|
|
331
|
+
delete doc[key];
|
|
332
|
+
}
|
|
343
333
|
}
|
|
344
334
|
}
|
|
345
335
|
async preparePayload(userContext, entity, isCreate = false) {
|