Open artlog opened 2 years ago
tentative fix with flush:true does not work, refresh_token 'after' as seen in traces does not persist.
setting config in NotificationAccount does not mark objet as dirty. Even setting markdirty does not trigger update, but markDirty('config') does it.
when it works :
2022-04-10 18:51:21.455 DEBUG --- [eduler_Worker-3] o.h.e.i.AbstractFlushingEventListener : Flushed: 0 insertions, 1 updates, 0 deletions to 3 objects
(...)
2022-04-10 18:51:21.478 DEBUG --- [ Thread-7] o.h.e.t.internal.TransactionImpl : begin
2022-04-10 18:51:21.478 DEBUG --- [ Thread-7] o.s.j.d.DriverManagerDataSource : Creating new JDBC DriverManager Connection to [jdbc:postgresql://localhost:5432/smarthome2]
2022-04-10 18:51:21.485 DEBUG --- [ Thread-7] o.h.e.t.internal.TransactionImpl : committing
(...)
2022-04-10 19:00:04.933 DEBUG --- [eduler_Worker-1] o.a.camel.spring.SpringCamelContext : onApplicationEvent: org.grails.datastore.mapping.engine.event.PreUpdateEvent[source=HibernateDatastore: DEFAULT]
2022-04-10 19:00:04.933 DEBUG --- [eduler_Worker-1] org.hibernate.SQL : update smarthome.notification_account set version=?, notification_account_sender_id=?, user_id=?, config=? where id=? and version=?
2022-04-10 19:00:04.935 DEBUG --- [eduler_Worker-1] o.a.camel.spring.SpringCamelContext : onApplicationEvent: org.grails.datastore.mapping.engine.event.PostUpdateEvent[source=HibernateDatastore: DEFAULT]
Enedis linky counter are not refreshed anymore, token refreshed is requested and obtained but its value in NotificationAccount does not persist at .save().