Preserve the addedTimestamp during import

This commit is contained in:
0xb00bface 2023-11-04 16:36:41 +01:00
parent cf29439a7f
commit ffa66fb1bb
1 changed files with 2 additions and 0 deletions

View File

@ -249,7 +249,9 @@ public abstract class AbstractRecordedModelsTab extends Tab implements TabSelect
protected Void call() {
for (Model model : models) {
try {
Instant addedTimestamp = model.getAddedTimestamp(); // preserve old addedTimestamp
recorder.addModel(model);
model.setAddedTimestamp(addedTimestamp); // restore old addedTimestamp
} catch (Exception e) {
log.error("Couldn't add model to recording list", e);
}