Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Logic, how does it work?

  • Loading branch information...
commit c679db96b92ebd3cc3f5f234b643f92ca0a97abb 1 parent b5e7da0
@roidrage roidrage authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 08-riak/commit-hooks/commit_hooks.erl
View
4 08-riak/commit-hooks/commit_hooks.erl
@@ -29,10 +29,10 @@ audit_trail(Object) ->
end,
Entry = case Deleted of
- true -> [{struct, [{get_timestamp(),
+ false -> [{struct, [{get_timestamp(),
mochijson2:decode(
riak_object:get_value(Object))}]}];
- false -> [{struct, [{get_timestamp(), null}]}]
+ true -> [{struct, [{get_timestamp(), null}]}]
end,
UpdatedAudit = lists:append(AuditTrail, Entry),
Json = list_to_binary(mochijson2:encode({struct, [{<<"trail">>, UpdatedAudit}]})),
Please sign in to comment.
Something went wrong with that request. Please try again.