Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nasa/openmct.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hill <john.c.hill@nasa.gov>2022-11-10 19:41:36 +0300
committerGitHub <noreply@github.com>2022-11-10 19:41:36 +0300
commit533d15657622d65e38bdb5ae6a07d2cb49f74942 (patch)
tree4b5e23b53b65422ee814adb2c3b500659a554579
parentb5fd6b61a2a40cbf103eccfbe6ad3d52850c92e0 (diff)
parente8ee5b3fc9b7fabfddffd2f41c39ec6f1cc65fcf (diff)
Merge branch 'master' into make-publish-public-mastermake-publish-public-master
-rw-r--r--src/api/objects/ObjectAPI.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/api/objects/ObjectAPI.js b/src/api/objects/ObjectAPI.js
index 986644350..fc4cc1a8c 100644
--- a/src/api/objects/ObjectAPI.js
+++ b/src/api/objects/ObjectAPI.js
@@ -377,11 +377,13 @@ export default class ObjectAPI {
this.#mutate(domainObject, 'modifiedBy', username);
if (isNewObject) {
- const persistedTime = Date.now();
+ this.#mutate(domainObject, 'createdBy', username);
+
+ const createdTime = Date.now();
+ this.#mutate(domainObject, 'created', createdTime);
+ const persistedTime = Date.now();
this.#mutate(domainObject, 'persisted', persistedTime);
- this.#mutate(domainObject, 'created', persistedTime);
- this.#mutate(domainObject, 'createdBy', username);
savedObjectPromise = provider.create(domainObject);
} else {