Skip to content

Commit

Permalink
set createTime earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Apr 23, 2024
1 parent 9a4ddd3 commit da87bd1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ public Dataset execute(CommandContext ctxt) throws CommandException {
recalculateUNF = true;
}
}

theDataset.getOrCreateEditVersion().setLastUpdateTime(getTimestamp());

// we have to merge to update the database but not flush because
// we don't want to create two draft versions!
// Although not completely tested, it looks like this merge handles the
Expand Down Expand Up @@ -256,7 +259,7 @@ public Dataset execute(CommandContext ctxt) throws CommandException {
ctxt.ingest().recalculateDatasetVersionUNF(theDataset.getOrCreateEditVersion());
}

theDataset.getOrCreateEditVersion().setLastUpdateTime(getTimestamp());

theDataset.setModificationTime(getTimestamp());

savedDataset = ctxt.em().merge(theDataset);
Expand Down

0 comments on commit da87bd1

Please sign in to comment.