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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user