refactor(pipedrive): set baseUrl in a seperate file
This commit is contained in:
@@ -32,10 +32,9 @@ export default defineTrigger({
|
||||
};
|
||||
|
||||
do {
|
||||
const { data } = await $.http.get<ResponseData>(
|
||||
`${$.auth.data.apiDomain}/api/v1/leads`,
|
||||
{ params }
|
||||
);
|
||||
const { data } = await $.http.get<ResponseData>('/api/v1/leads', {
|
||||
params,
|
||||
});
|
||||
|
||||
if (!data?.data?.length) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user