mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/console: Supply index for event erase write operation.
This commit is contained in:
parent
aa5681dab9
commit
1e0d17935b
1 changed files with 1 additions and 0 deletions
|
@ -1889,6 +1889,7 @@ console_cmd__event__erase(opt &out, const string_view &line)
|
||||||
|
|
||||||
m::dbs::write_opts opts;
|
m::dbs::write_opts opts;
|
||||||
opts.op = db::op::DELETE;
|
opts.op = db::op::DELETE;
|
||||||
|
opts.idx = m::event::fetch::index(event);
|
||||||
m::dbs::write(txn, event, opts);
|
m::dbs::write(txn, event, opts);
|
||||||
txn();
|
txn();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue