Prevent EventType::Unsupported type events to be saved in db, avoiding exceptions
This commit is contained in:
parent
9754b94364
commit
9b9d784a82
@ -381,7 +381,7 @@ private:
|
||||
|
||||
std::visit(
|
||||
[&txn, &statesdb](auto e) {
|
||||
if constexpr (isStateEvent(e))
|
||||
if (isStateEvent(e) && e.type != EventType::Unsupported)
|
||||
statesdb.put(txn, to_string(e.type), json(e).dump());
|
||||
},
|
||||
event);
|
||||
|
Loading…
Reference in New Issue
Block a user