Skip to content

Commit

Permalink
Add v prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Mar 6, 2024
1 parent 91381c2 commit 0a8a4a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/lib/aws/ecr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class ECR {
try {
await ecr.send(new AWSECR.BatchDeleteImageCommand({
repositoryName: 'coe-ecr-etl-tasks',
imageIds: [{ imageTag: `${task}-${version}` }]
imageIds: [{ imageTag: `${task}-v${version}` }]
}));
} catch (err) {
throw new Err(500, new Error(err instanceof Error ? err.message : String(err)), 'Failed to delete ECR Tasks');
Expand Down
2 changes: 1 addition & 1 deletion api/routes/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default async function router(schema: Schema, config: Config) {
if (!versions) throw new Err(400, null, 'Task does not exist');
if (!versions.includes(req.params.version)) throw new Err(400, null, 'Task Version does not exist');

const task = `${req.params.task}-${req.params.version}`;
const task = `${req.params.task}-v${req.params.version}`;
const layers = await config.models.Layer.list({
limit: 1,
where: sql`
Expand Down

0 comments on commit 0a8a4a9

Please sign in to comment.