1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 10:40:06 +00:00

fix: function renamed fetchLogByChunks

This commit is contained in:
Saad Jutt
2021-03-23 00:50:33 +05:00
parent b3474b6dfb
commit dde1228b1d
3 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import {
isRelativePath,
isUri,
isUrl,
fetchLogFileContentByChunks
fetchLogByChunks
} from './utils'
import * as NodeFormData from 'form-data'
import {
@@ -433,7 +433,7 @@ export class SASViyaApiClient {
if (debug && logLink) {
const logUrl = `${logLink.href}/content`
const logCount = currentJob.logStatistics?.lineCount ?? 1000000
log = await fetchLogFileContentByChunks(
log = await fetchLogByChunks(
this.requestClient,
accessToken!,
logUrl,
@@ -461,7 +461,7 @@ export class SASViyaApiClient {
if (logLink) {
const logUrl = `${logLink.href}/content`
const logCount = currentJob.logStatistics?.lineCount ?? 1000000
log = await fetchLogFileContentByChunks(
log = await fetchLogByChunks(
this.requestClient,
accessToken!,
logUrl,

View File

@@ -9,7 +9,7 @@ import { prefixMessage } from '@sasjs/utils/error'
* @param {number} logCount- total number of log lines in file.
* @returns an string containing log lines.
*/
export const fetchLogFileContentByChunks = async (
export const fetchLogByChunks = async (
requestClient: RequestClient,
accessToken: string,
logUrl: string,

View File

@@ -11,4 +11,4 @@ export * from './parseSasViyaLog'
export * from './serialize'
export * from './splitChunks'
export * from './parseWeboutResponse'
export * from './fetchLogFileContentByChunks'
export * from './fetchLogByChunks'