Skip to content

Commit

Permalink
Adding entityID to remote path
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia committed Oct 3, 2024
1 parent d6c7d6a commit 42c12a7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion consumer-server/src/logic/conversion-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,16 @@ export async function executeConversion(
components.metrics.increment('ab_converter_empty_conversion', { ab_version: $AB_VERSION })
logger.error('Empty conversion', { ...defaultLoggerMetadata, manifest } as any)
}

Check failure on line 269 in consumer-server/src/logic/conversion-task.ts

View workflow job for this annotation

GitHub Actions / install

Delete `····`
let uploadPath = ""

Check failure on line 270 in consumer-server/src/logic/conversion-task.ts

View workflow job for this annotation

GitHub Actions / install

Replace `""` with `''`
if($BUILD_TARGET === "webgl") {

Check failure on line 271 in consumer-server/src/logic/conversion-task.ts

View workflow job for this annotation

GitHub Actions / install

Replace `($BUILD_TARGET·===·"webgl"` with `·($BUILD_TARGET·===·'webgl'`
uploadPath = $AB_VERSION
}else{

Check failure on line 273 in consumer-server/src/logic/conversion-task.ts

View workflow job for this annotation

GitHub Actions / install

Replace `else` with `·else·`
uploadPath = $AB_VERSION + "/" + entityId

Check failure on line 274 in consumer-server/src/logic/conversion-task.ts

View workflow job for this annotation

GitHub Actions / install

Replace `"/"` with `'/'`
}

// first upload the content
await uploadDir(components.cdnS3, cdnBucket, outDirectory, $AB_VERSION, {
await uploadDir(components.cdnS3, cdnBucket, outDirectory, uploadPath, {
concurrency: 10,
matches: [
{
Expand Down

0 comments on commit 42c12a7

Please sign in to comment.