Always attach service_provider_sid to a carrier (#179)

* always attach service_provider_id to a carrier

* cleanup

Co-authored-by: EgleHelms <e.helms@cognigy.com>
This commit is contained in:
EgleH
2023-01-23 13:56:41 +01:00
committed by GitHub
parent fd29f986e4
commit 4149930945
3 changed files with 2 additions and 2 deletions

2
.env
View File

@@ -1,5 +1,5 @@
VITE_API_BASE_URL=http://127.0.0.1:3000/v1
VITE_DEV_BASE_URL=http://127.0.0.1:3002/api
VITE_DEV_BASE_URL=http://127.0.0.1:3000/v1
## enables choosing units and lisenced account call limits
# VITE_APP_ENABLE_ACCOUNT_LIMITS_ALL=true

View File

@@ -327,7 +327,6 @@ export const postServiceProviderLimit = (
sid: string,
payload: Partial<Limit>
) => {
console.log(payload);
return postFetch<SidResponse, Partial<Limit>>(
`${API_SERVICE_PROVIDERS}/${sid}/Limits`,
payload

View File

@@ -481,6 +481,7 @@ export const CarrierForm = ({
name: carrierName.trim(),
e164_leading_plus: e164,
application_sid: applicationSid || null,
service_provider_sid: currentServiceProvider.service_provider_sid,
account_sid: accountSid || null,
requires_register: sipRegister,
register_username: sipUser.trim() || null,