mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
More fixes for automate (#5168)
# Description of Changes Fix file missed in #5127 to use `apiClient` instead of `axios` directly Co-authored-by: ConnorYoh <[email protected]>
This commit is contained in:
co-authored by
ConnorYoh
parent
c6b4a2b141
commit
e7db714091
@@ -2,7 +2,7 @@
|
|||||||
* File processing utilities specifically for automation workflows
|
* File processing utilities specifically for automation workflows
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import axios from 'axios';
|
import apiClient from '@app/services/apiClient';
|
||||||
import { zipFileService } from '@app/services/zipFileService';
|
import { zipFileService } from '@app/services/zipFileService';
|
||||||
import { ResourceManager } from '@app/utils/resourceManager';
|
import { ResourceManager } from '@app/utils/resourceManager';
|
||||||
import { AUTOMATION_CONSTANTS } from '@app/constants/automation';
|
import { AUTOMATION_CONSTANTS } from '@app/constants/automation';
|
||||||
@@ -97,7 +97,7 @@ export class AutomationFileProcessor {
|
|||||||
options: AutomationProcessingOptions = {}
|
options: AutomationProcessingOptions = {}
|
||||||
): Promise<AutomationProcessingResult> {
|
): Promise<AutomationProcessingResult> {
|
||||||
try {
|
try {
|
||||||
const response = await axios.post(endpoint, formData, {
|
const response = await apiClient.post(endpoint, formData, {
|
||||||
responseType: options.responseType || 'blob',
|
responseType: options.responseType || 'blob',
|
||||||
timeout: options.timeout || AUTOMATION_CONSTANTS.OPERATION_TIMEOUT
|
timeout: options.timeout || AUTOMATION_CONSTANTS.OPERATION_TIMEOUT
|
||||||
});
|
});
|
||||||
@@ -139,7 +139,7 @@ export class AutomationFileProcessor {
|
|||||||
options: AutomationProcessingOptions = {}
|
options: AutomationProcessingOptions = {}
|
||||||
): Promise<AutomationProcessingResult> {
|
): Promise<AutomationProcessingResult> {
|
||||||
try {
|
try {
|
||||||
const response = await axios.post(endpoint, formData, {
|
const response = await apiClient.post(endpoint, formData, {
|
||||||
responseType: options.responseType || 'blob',
|
responseType: options.responseType || 'blob',
|
||||||
timeout: options.timeout || AUTOMATION_CONSTANTS.OPERATION_TIMEOUT
|
timeout: options.timeout || AUTOMATION_CONSTANTS.OPERATION_TIMEOUT
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user