fix(share): register calendar_share migration and rebuild old PK schema. Refs EventHub/EventHubBack#73
CI / test (push) Successful in 9m32s
CI / deploy-ift (push) Successful in 4m35s
CI / e2e-ift (push) Successful in 1m40s
CI / deploy-stage (push) Successful in 2m27s
CI / e2e-stage (push) Successful in 4m23s

This commit is contained in:
2026-08-16 10:04:16 +03:00
parent fb927b7f71
commit 1c701a5254
5 changed files with 108 additions and 32 deletions
+6 -2
View File
@@ -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}).