0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 04:08:54 +02:00

modules/console: Supply index for event erase write operation.

This commit is contained in:
Jason Volk 2018-04-23 18:15:18 -07:00
parent aa5681dab9
commit 1e0d17935b

View file

@ -1889,6 +1889,7 @@ console_cmd__event__erase(opt &out, const string_view &line)
m::dbs::write_opts opts;
opts.op = db::op::DELETE;
opts.idx = m::event::fetch::index(event);
m::dbs::write(txn, event, opts);
txn();