Skip to content

Commit 0b41914

Browse files
committed
fix meta fields
1 parent 11e0f9c commit 0b41914

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @code.store/arcxp-sdk-ts
22

3+
## 4.40.6
4+
5+
### Patch Changes
6+
7+
- fix meta fields
8+
39
## 4.40.5
410

511
### Patch Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@code.store/arcxp-sdk-ts",
3-
"version": "4.40.5",
3+
"version": "4.40.6",
44
"description": "A strongly typed set of ArcXP API's and utilities reduce the amount of work required to develop with ArcXP, starting with reducing the boilerplate code you have to write.",
55
"type": "commonjs",
66
"main": "./dist/index.js",

src/mapper/story.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@ import { Document } from './doc';
2020
* }
2121
*/
2222
export abstract class Story<ANS extends ANSContent = Types.Story.AStory> extends Document<ANS> {
23-
async getMigrationMetaProperties() {
24-
return {
25-
// used in dashboard for migration
26-
'migration.source_id': await this.sourceId(),
27-
'migration.source_type': await this.sourceType(),
28-
// used in dashboard to show the original url
29-
'migration.url': await this.legacyUrl(),
30-
};
31-
}
32-
3323
type() {
3424
return 'story' as const;
3525
}
@@ -103,4 +93,14 @@ export abstract class Story<ANS extends ANSContent = Types.Story.AStory> extends
10393
},
10494
} as unknown as ANS;
10595
}
96+
97+
protected async getMigrationMetaProperties(): Promise<Record<string, any>> {
98+
return {
99+
// used in dashboard for migration
100+
migration_source_id: await this.sourceId(),
101+
migration_source_type: await this.sourceType(),
102+
// used in dashboard to show the original url
103+
migration_url: await this.legacyUrl(),
104+
};
105+
}
106106
}

0 commit comments

Comments
 (0)