From e8fb71c4bbf7c70f05ebf382db0c990d5136045b Mon Sep 17 00:00:00 2001 From: Bethany Date: Wed, 9 Aug 2023 11:34:18 -0700 Subject: [PATCH] lint --- packages/artifact/src/internal/shared/util.ts | 2 +- packages/artifact/src/internal/upload/upload-artifact.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/artifact/src/internal/shared/util.ts b/packages/artifact/src/internal/shared/util.ts index 4f378145..1b7ca9e1 100644 --- a/packages/artifact/src/internal/shared/util.ts +++ b/packages/artifact/src/internal/shared/util.ts @@ -1,4 +1,4 @@ -import {getRetentionDays, getRuntimeToken} from './config' +import {getRuntimeToken} from './config' import jwt_decode from 'jwt-decode' import {Timestamp} from 'src/generated' diff --git a/packages/artifact/src/internal/upload/upload-artifact.ts b/packages/artifact/src/internal/upload/upload-artifact.ts index 335936d2..a793ce17 100644 --- a/packages/artifact/src/internal/upload/upload-artifact.ts +++ b/packages/artifact/src/internal/upload/upload-artifact.ts @@ -60,7 +60,7 @@ export async function uploadArtifact( const createArtifactReq: CreateArtifactRequest = { workflowRunBackendId: backendIds.workflowRunBackendId, workflowJobRunBackendId: backendIds.workflowJobRunBackendId, - name: name, + name, version: 4 } @@ -69,7 +69,7 @@ export async function uploadArtifact( if (expiresAt) { createArtifactReq.expiresAt = expiresAt } - const createArtifactResp = await createArtifact(() => + const createArtifactResp = await createArtifact(async () => artifactClient.CreateArtifact(createArtifactReq) ) if (!createArtifactResp || !createArtifactResp.ok) { @@ -82,11 +82,11 @@ export async function uploadArtifact( // TODO - Implement upload functionality // finalize the artifact - const finalizeArtifactResp = await finalizeArtifact(() => + const finalizeArtifactResp = await finalizeArtifact(async () => artifactClient.FinalizeArtifact({ workflowRunBackendId: backendIds.workflowRunBackendId, workflowJobRunBackendId: backendIds.workflowJobRunBackendId, - name: name, + name, size: '0' // TODO - Add size }) )