Skip to content

Commit

Permalink
Rename 'binaryData' to 'binary_data' (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage authored Nov 6, 2024
1 parent 8195e4a commit 9a5c421
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFileSync } from "fs"; // Only if using local data

const coverAsset: MigrationAsset = {
// You can read the data from anywhere, not just from the filesystem
binaryData: readFileSync("./movies/posters/warrior.jpg"),
binary_data: readFileSync("./movies/posters/warrior.jpg"),
// Ensure a unique asset codename. Check https://kontent.ai/learn/rules-for-codenames
// This codename is used to reference the asset in the MigrationItem object
codename: "warrior_teaser",
Expand All @@ -26,4 +26,4 @@ const coverAsset: MigrationAsset = {
],
};

const migrationAssets: MigrationAsset[] = [coverAsset];
const migrationAssets: MigrationAsset[] = [coverAsset];

0 comments on commit 9a5c421

Please sign in to comment.