Skip to content

Commit f2d631a

Browse files
committed
Keep same response format as before
1 parent 36f19c3 commit f2d631a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ArtifactService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ async function listArtifacts (authUser, submissionId) {
109109

110110
const artifacts = await s3.listObjects({ Bucket: config.aws.ARTIFACT_BUCKET, Prefix: submissionId }).promise()
111111
const artifactsContents = _.map(artifacts.Contents, (at) => path.parse(at.Key).name)
112-
return hasFullAccess ? artifactsContents : _.filter(artifactsContents, artifactName => !artifactName.includes('internal'))
112+
return { artifacts: hasFullAccess ? artifactsContents : _.filter(artifactsContents, artifactName => !artifactName.includes('internal')) }
113113
}
114114

115115
listArtifacts.schema = joi.object({

0 commit comments

Comments
 (0)