Browse Source

remove inpit state

Andrii Zadorozhnii 11 years ago
parent
commit
65ffcdf183
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/kvs_product.erl

+ 3 - 3
src/kvs_product.erl

@@ -117,10 +117,10 @@ handle_notice([kvs_product, Owner, create],
     {noreply, State};
     {noreply, State};
 
 
 handle_notice([kvs_product, Owner, update],
 handle_notice([kvs_product, Owner, update],
-              [#product{}=Product, Recipients, Is], #state{owner=Owner} = State) ->
+              [#product{}=Product, Recipients], #state{owner=Owner} = State) ->
     error_logger:info_msg("[kvs_product] Update product ~p", [Owner]),
     error_logger:info_msg("[kvs_product] Update product ~p", [Owner]),
     case kvs:get(product, Owner) of {error,E}->
     case kvs:get(product, Owner) of {error,E}->
-        msg:notify([kvs_product, product, Owner, updated], [{error,E}, Is]);
+        msg:notify([kvs_product, product, Owner, updated], [{error,E}]);
     {ok, #product{}=P} ->
     {ok, #product{}=P} ->
         Id = P#product.id,
         Id = P#product.id,
         UpdProduct = P#product{
         UpdProduct = P#product{
@@ -144,7 +144,7 @@ handle_notice([kvs_product, Owner, update],
 
 
         [msg:notify([kvs_feed, RouteType, To, entry, {Id, products}, edit], [Entry])
         [msg:notify([kvs_feed, RouteType, To, entry, {Id, products}, edit], [Entry])
             || {RouteType, To} <- [{user, P#product.owner} | [{group, G} || G <- Intersection]]],
             || {RouteType, To} <- [{user, P#product.owner} | [{group, G} || G <- Intersection]]],
-        msg:notify([kvs_product, product, Owner, updated], [UpdProduct, Is])
+        msg:notify([kvs_product, product, Owner, updated], [UpdProduct])
     end,
     end,
     {noreply, State};
     {noreply, State};