diff --git a/td/telegram/logevent/LogEventHelper.h b/td/telegram/logevent/LogEventHelper.h index 57a249102..f4ae0e029 100644 --- a/td/telegram/logevent/LogEventHelper.h +++ b/td/telegram/logevent/LogEventHelper.h @@ -28,7 +28,7 @@ inline Promise get_erase_logevent_promise_impl(const char *file, int32 lin return PromiseCreator::lambda([file, line, logevent_id, promise = std::move(promise)](Result result) mutable { if (!G()->close_flag()) { - binlog_erase(G()->td_db()->get_binlog_impl(file, line), logevent_id); + binlog_erase(G()->get_td_db_impl(file, line)->get_binlog_impl(file, line), logevent_id); } promise.set_result(std::move(result));