Fix state and timestamp being discarded on store with alias (#16845)

Fixes #16844

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Jacob Laursen 2024-06-05 18:32:53 +02:00 committed by Ciprian Pascu
parent dc780ac4b1
commit d926028614

View File

@ -154,7 +154,7 @@ public class JdbcPersistenceService extends JdbcMapper implements ModifiablePers
@Override
public void store(Item item, ZonedDateTime date, State state, @Nullable String alias) {
// alias is not supported
scheduler.execute(() -> internalStore(item, null, item.getState()));
scheduler.execute(() -> internalStore(item, date, state));
}
private synchronized void internalStore(Item item, @Nullable ZonedDateTime date, State state) {