Skip to content

Commit

Permalink
Revert "bug: 1082 use saveAndFlush() to fix duplicate key errors"
Browse files Browse the repository at this point in the history
This reverts commit 6920aed.
  • Loading branch information
ds-lcapellino committed Jul 8, 2024
1 parent 6920aed commit 2231e06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public List<AssetBase> getAssets() {

@Override
public AssetBase save(AssetBase asset) {
return jpaAssetAsBuiltRepository.saveAndFlush(AssetAsBuiltEntity.from(asset)).toDomain();
return jpaAssetAsBuiltRepository.save(AssetAsBuiltEntity.from(asset)).toDomain();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public List<AssetBase> getAssets() {

@Override
public AssetBase save(AssetBase asset) {
return AssetAsPlannedEntity.toDomain(jpaAssetAsPlannedRepository.saveAndFlush(AssetAsPlannedEntity.from(asset)));
return AssetAsPlannedEntity.toDomain(jpaAssetAsPlannedRepository.save(AssetAsPlannedEntity.from(asset)));
}

@Override
Expand Down

0 comments on commit 2231e06

Please sign in to comment.