HG-468 Add temporary reindex MG call handler (#304)

This should make possible to fix rest of
rbkmoney/hellgate#299 problems
This commit is contained in:
Andrey Fadeev 2019-04-05 10:41:13 +02:00 committed by GitHub
parent faf2d4c22b
commit 89464944b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,7 +285,16 @@ handle_call({revoke_claim, ID, ClaimRevision, Reason}, AuxSt, St) ->
[finalize_claim(Claim, Timestamp)],
AuxSt,
St
).
);
handle_call(rebuild_index, AuxSt, _St) ->
{
{ok, ok},
#{
events => [],
auxst => wrap_aux_state(AuxSt)
}
}.
publish_party_event(Source, {ID, Dt, Ev = ?party_ev(_)}) ->
#payproc_Event{id = ID, source = Source, created_at = Dt, payload = Ev}.