anchor.diff:  %%--------------------------------------------------------------------
   -spec links_delete(doc()) -> ok.
   links_delete(Doc = #document{key = Key, value = LinksMask = #links_mask{
  -    model = Model, tree_id = TreeId
  +    key = RoutingKey, model = Model, tree_id = TreeId
   }, deleted = false}) ->
       LocalTreeId = oneprovider:get_provider_id(),
       case TreeId of
  
positive.code: %% Returns list of masked links that have been already deleted.
  %% @end
  %%--------------------------------------------------------------------
  -spec get_links_mask(ctx(), key()) -> [links_mask:link()].
  get_links_mask(Ctx, Key) ->
      case datastore_router:route(Ctx, Key, get, [Ctx, Key]) of
          {ok, #document{value = #links_mask{links = Links}}} -> Links;
          {error, not_found} -> []
      end.
  
negative.code:                 sync_change => true,
                  local_links_tree_id => LocalTreeId
              },
              Ctx3 = datastore_multiplier:extend_name(RoutingKey, Ctx2),
              save_links_mask(Ctx3, Doc);
          _ ->
              ok
  