Skip to content

Commit

Permalink
Refactor loadArchive -> loadArchivePackage.
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed Sep 24, 2020
1 parent 20b8e70 commit e6a8236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { PackageInvalidArchiveError, PackageUnsupportedMediaTypeError } from '..
import { cacheGet, cacheSet, setArchiveFilelist } from '../registry/cache';
import { unzipBuffer, untarBuffer, ArchiveEntry } from '../registry/extract';

export async function loadArchive({
export async function loadArchivePackage({
archiveBuffer,
contentType,
}: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ import {
import { getPackageSavedObjects } from './get';
import { installTransformForDataset } from '../elasticsearch/transform/install';
import { appContextService } from '../../app_context';
import { loadArchive } from '../archive';
import { loadArchivePackage } from '../archive';

export async function installLatestPackage(options: {
savedObjectsClient: SavedObjectsClientContract;
Expand Down Expand Up @@ -336,7 +336,7 @@ export async function installPackageByUpload({
archiveBuffer: Buffer;
contentType: string;
}): Promise<AssetReference[]> {
const { paths, archivePackageInfo } = await loadArchive({ archiveBuffer, contentType });
const { paths, archivePackageInfo } = await loadArchivePackage({ archiveBuffer, contentType });
return [];
}

Expand Down

0 comments on commit e6a8236

Please sign in to comment.