Refactor BillingEventHandlerService and update SQL permissions

Changed BillingEventHandlerService from a class to a method. Also, the SQL permissions for service_role on public.order_items table have been updated to include insert, update and delete operations. Additionally, made adjustment to configuration values in the billing.sample.config.ts file.
This commit is contained in:
giancarlo
2024-06-04 13:32:02 +07:00
parent cc4453ae4c
commit 2696c08d7d
3 changed files with 36 additions and 6 deletions

View File

@@ -1889,7 +1889,7 @@ select
on table public.order_items to authenticated,
service_role;
grant insert on table public.order_items to service_role;
grant insert, update, delete on table public.order_items to service_role;
-- Indexes on the order_items table
create index ix_order_items_order_id on public.order_items (order_id);