mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-16 16:40:06 +00:00
fix: function renamed fetchLogByChunks
This commit is contained in:
@@ -3,7 +3,7 @@ import {
|
|||||||
isRelativePath,
|
isRelativePath,
|
||||||
isUri,
|
isUri,
|
||||||
isUrl,
|
isUrl,
|
||||||
fetchLogFileContentByChunks
|
fetchLogByChunks
|
||||||
} from './utils'
|
} from './utils'
|
||||||
import * as NodeFormData from 'form-data'
|
import * as NodeFormData from 'form-data'
|
||||||
import {
|
import {
|
||||||
@@ -433,7 +433,7 @@ export class SASViyaApiClient {
|
|||||||
if (debug && logLink) {
|
if (debug && logLink) {
|
||||||
const logUrl = `${logLink.href}/content`
|
const logUrl = `${logLink.href}/content`
|
||||||
const logCount = currentJob.logStatistics?.lineCount ?? 1000000
|
const logCount = currentJob.logStatistics?.lineCount ?? 1000000
|
||||||
log = await fetchLogFileContentByChunks(
|
log = await fetchLogByChunks(
|
||||||
this.requestClient,
|
this.requestClient,
|
||||||
accessToken!,
|
accessToken!,
|
||||||
logUrl,
|
logUrl,
|
||||||
@@ -461,7 +461,7 @@ export class SASViyaApiClient {
|
|||||||
if (logLink) {
|
if (logLink) {
|
||||||
const logUrl = `${logLink.href}/content`
|
const logUrl = `${logLink.href}/content`
|
||||||
const logCount = currentJob.logStatistics?.lineCount ?? 1000000
|
const logCount = currentJob.logStatistics?.lineCount ?? 1000000
|
||||||
log = await fetchLogFileContentByChunks(
|
log = await fetchLogByChunks(
|
||||||
this.requestClient,
|
this.requestClient,
|
||||||
accessToken!,
|
accessToken!,
|
||||||
logUrl,
|
logUrl,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { prefixMessage } from '@sasjs/utils/error'
|
|||||||
* @param {number} logCount- total number of log lines in file.
|
* @param {number} logCount- total number of log lines in file.
|
||||||
* @returns an string containing log lines.
|
* @returns an string containing log lines.
|
||||||
*/
|
*/
|
||||||
export const fetchLogFileContentByChunks = async (
|
export const fetchLogByChunks = async (
|
||||||
requestClient: RequestClient,
|
requestClient: RequestClient,
|
||||||
accessToken: string,
|
accessToken: string,
|
||||||
logUrl: string,
|
logUrl: string,
|
||||||
@@ -11,4 +11,4 @@ export * from './parseSasViyaLog'
|
|||||||
export * from './serialize'
|
export * from './serialize'
|
||||||
export * from './splitChunks'
|
export * from './splitChunks'
|
||||||
export * from './parseWeboutResponse'
|
export * from './parseWeboutResponse'
|
||||||
export * from './fetchLogFileContentByChunks'
|
export * from './fetchLogByChunks'
|
||||||
|
|||||||
Reference in New Issue
Block a user