update method
Updates a data item.
correlation_id
(optional) transaction id to trace execution through call chain.item
an item to be updated. Return Future that receives updated item Throws error.
Implementation
@override
Future<SessionV1?> update(String? correlationId, SessionV1? item) async {
if (item == null) {
return null;
}
var now = DateTime.now();
item.request_time = now;
item.active = item.active;
return super.update(correlationId, item);
}