Remove unnecessary query param for /v1/certificate/delivery endpoint

This commit is contained in:
Evan Hahn
2021-01-27 11:10:00 -06:00
committed by GitHub
parent d50b02cc35
commit 10ace53845
2 changed files with 3 additions and 8 deletions

View File

@@ -1086,17 +1086,12 @@ export function initialize({
}
async function getSenderCertificate(omitE164?: boolean) {
const baseParameters = '?includeUuid=true';
const urlParameters = `${baseParameters}${
omitE164 ? '&includeE164=false' : ''
}`;
return _ajax({
call: 'deliveryCert',
httpType: 'GET',
responseType: 'json',
validateResponse: { certificate: 'string' },
urlParameters,
...(omitE164 ? { urlParameters: '?includeE164=false' } : {}),
});
}