Skip to content

Commit 37a0a44

Browse files
committed
refactor: uuid, id
Signed-off-by: ZhaoYongchao <zhao.yc@callgent.com>
1 parent b70306c commit 37a0a44

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/quick-start/call-the-callgent.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You may directly send an email to:<Email />
1919
then wait for reply from the callgent's [Service Endpoint](#connect-the-callgent-to-a-service-endpoint).
2020

2121
:::tip
22-
The email address and API url below, contains callgent UUID, which is available after you've [created the callgent](#create-a-new-callgent).
22+
The email address and API url below, contains callgent Id, which is available after you've [created the callgent](#create-a-new-callgent).
2323
:::
2424

2525
## REST API

src/components/tree/endpoints.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const Endpoints: React.FC<ModalFormProps> = ({ initialData, type, adaptorKey, tr
1212
const [importState, setImportState] = useState<boolean | string | null>(null);
1313
const submitFunction = async () => {
1414
const formData = new FormData(formRef.current);
15-
const formValues = Object.fromEntries(formData.entries()) as { type: string, host: any, callgentUuid: string };
16-
formValues.callgentUuid = treeData.id;
15+
const formValues = Object.fromEntries(formData.entries()) as { type: string, host: any, callgentId: string };
16+
formValues.callgentId = treeData.id;
1717
formValues.type = initialData.id;
1818
type === 'Edit' ?
1919
await axios.put('/api/endpoints/' + initialData.id, { host: formValues.host }).then(req => {

src/components/user-as-a-service/create-endpoints.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const CreateEndpoints = () => {
1818
const data = {
1919
"type": 'SERVER',
2020
"host": formValues.email,
21-
"callgentUuid": callgent.id
21+
"callgentId": callgent.id
2222
}
2323
await axios.post('/api/endpoints/email/callgents', data).then(req => {
2424
setImportState(true);

0 commit comments

Comments
 (0)