Skip to content

Commit 39a57ee

Browse files
authored
fix(api): trim registry url when building snapshots (#2880)
Signed-off-by: Toma Puljak <[email protected]>
1 parent 2996410 commit 39a57ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/api/src/sandbox/managers/snapshot.manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ export class SnapshotManager implements TrackableJobExecutions, OnApplicationShu
604604

605605
// save snapshotRunner
606606

607-
const internalSnapshotName = `${registry.url}/${registry.project}/${snapshot.buildInfo.snapshotRef}`
607+
const internalSnapshotName = `${registry.url.replace(/^(https?:\/\/)/, '')}/${registry.project}/${snapshot.buildInfo.snapshotRef}`
608608

609609
snapshot.internalName = internalSnapshotName
610610
await this.snapshotRepository.save(snapshot)

0 commit comments

Comments
 (0)