Skip to content

Commit

Permalink
fix(core): duplicate translations after performing database upload (#352
Browse files Browse the repository at this point in the history
)

Fixes #351
  • Loading branch information
diogotcorreia authored Nov 28, 2023
1 parent 316b6f0 commit f314792
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ public boolean uploadPartiallyToStorage(ConcurrentHashMap<String, Collection> co
}

TWINData twin = item.getTwinData();
if (twin == null) twin = new TWINData();
if (twin == null) {
twin = new TWINData();
item.setTwinData(twin);
}
twin.ensureValid();

translationsStatement.setString(9, twin.getId().toString());
Expand Down

0 comments on commit f314792

Please sign in to comment.