diff --git a/libraries/db/include/graphene/db/index.hpp b/libraries/db/include/graphene/db/index.hpp index 1bc593f4..e8d4fa11 100644 --- a/libraries/db/include/graphene/db/index.hpp +++ b/libraries/db/include/graphene/db/index.hpp @@ -402,6 +402,15 @@ namespace graphene { namespace db { DerivedIndex::remove(obj); } + virtual const object& insert( object&& obj )override + { + const auto& res = DerivedIndex::insert(std::move(obj)); + for( const auto& item : _sindex ) + item->object_inserted( res ); + on_add(res); + return res; + } + virtual void modify( const object& obj, const std::function& m )override { save_undo( obj );