Skip to content

Commit 0367534

Browse files
committed
fix(migrations): update attachment URL migration scripts
1 parent bbccedf commit 0367534

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/migrations/1755499552000-update-attachment-urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class UpdateAttachmentUrls1755499552000 implements MigrationInterface {
2727
// Replace /api/v1/attachments/images/{id} and
2828
// /api/v1/attachments/media/{id} with attachments/{id}
2929
const updatedContent = originalContent.replace(
30-
/\/api\/v1\/attachments\/(images|media)\/([a-zA-Z0-9\._-]+)/g,
30+
/\/api\/v1\/attachments\/(images|media)\/([a-zA-Z0-9._-]+)/g,
3131
'attachments/$2',
3232
);
3333

src/migrations/1755504936756-scan-resource-attachments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class ScanResourceAttachments1755504936756
2828

2929
// Find all attachment references in the format: attachments/{id}
3030
const attachmentMatches = content.match(
31-
/attachments\/([a-zA-Z0-9\._-]+)/g,
31+
/attachments\/([a-zA-Z0-9._-]+)/g,
3232
);
3333

3434
for (const match of attachmentMatches || []) {

0 commit comments

Comments
 (0)