mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-18 20:04:17 +01: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 <40631091+ConnorYoh@users.noreply.github.com>
This commit is contained in:
parent
c6b4a2b141
commit
e7db714091
@ -2,7 +2,7 @@
|
||||
* File processing utilities specifically for automation workflows
|
||||
*/
|
||||
|
||||
import axios from 'axios';
|
||||
import apiClient from '@app/services/apiClient';
|
||||
import { zipFileService } from '@app/services/zipFileService';
|
||||
import { ResourceManager } from '@app/utils/resourceManager';
|
||||
import { AUTOMATION_CONSTANTS } from '@app/constants/automation';
|
||||
@ -97,7 +97,7 @@ export class AutomationFileProcessor {
|
||||
options: AutomationProcessingOptions = {}
|
||||
): Promise<AutomationProcessingResult> {
|
||||
try {
|
||||
const response = await axios.post(endpoint, formData, {
|
||||
const response = await apiClient.post(endpoint, formData, {
|
||||
responseType: options.responseType || 'blob',
|
||||
timeout: options.timeout || AUTOMATION_CONSTANTS.OPERATION_TIMEOUT
|
||||
});
|
||||
@ -139,7 +139,7 @@ export class AutomationFileProcessor {
|
||||
options: AutomationProcessingOptions = {}
|
||||
): Promise<AutomationProcessingResult> {
|
||||
try {
|
||||
const response = await axios.post(endpoint, formData, {
|
||||
const response = await apiClient.post(endpoint, formData, {
|
||||
responseType: options.responseType || 'blob',
|
||||
timeout: options.timeout || AUTOMATION_CONSTANTS.OPERATION_TIMEOUT
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user