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

Fixes #16844

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2024-06-05 18:32:53 +02:00 committed by GitHub
parent 43fa2c7768
commit 359d63f84d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {