update the modificationDate at the end

This commit is contained in:
Michele Artini 2021-01-18 16:00:14 +01:00
parent 9dd2a5f523
commit 66e0238d73
1 changed files with 2 additions and 2 deletions

View File

@ -132,8 +132,6 @@ public class DatabaseUtils {
final OffsetDateTime now = OffsetDateTime.now();
organizationRepository.updateModificationDate(newId, user, now);
if (StringUtils.equals(newId, oldId)) {
makeRelations(newId, orgView, true);
} else {
@ -160,6 +158,8 @@ public class DatabaseUtils {
}
}
organizationRepository.updateModificationDate(newId, user, now);
return newId;
}