fix(share): register calendar_share migration and rebuild old PK schema. Refs EventHub/EventHubBack#73
This commit is contained in:
@@ -148,5 +148,9 @@ map_decide_error(Req, not_pending) ->
|
||||
handler_utils:send_error(Req, 409, <<"Invite is not pending">>);
|
||||
map_decide_error(Req, expired) ->
|
||||
handler_utils:send_error(Req, 410, <<"Invite expired">>);
|
||||
map_decide_error(Req, _) ->
|
||||
handler_utils:send_error(Req, 500, <<"Internal server error">>).
|
||||
map_decide_error(Req, {no_exists, Table}) ->
|
||||
handler_utils:report_and_send_error(Req, 503,
|
||||
<<"Schema not ready">>, #{reason => no_exists, table => Table});
|
||||
map_decide_error(Req, Reason) ->
|
||||
handler_utils:report_and_send_error(Req, 500,
|
||||
<<"Internal server error">>, #{reason => Reason}).
|
||||
|
||||
Reference in New Issue
Block a user