Skip to content

Commit

Permalink
✨ Add sameAs field in metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiJun0827 committed Oct 17, 2023
1 parent 4a961b2 commit 8cb62ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iscn-batch-uploader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const {

const DEFAULT_OUTPUT_PATH = 'output.csv';
const DEFAULT_ARRAY_DELIMITER = ',';
const ARRAY_TYPE_FIELDS = ['keywords'];
const ARRAY_TYPE_FIELDS = ['keywords', 'sameAs'];
const GAS_PRICE = 10;
const ISCN_RECORD_NOTES = `iscn-batch-uploader ${version}`;

Expand All @@ -30,6 +30,7 @@ function convertFieldNames(data) {
arweaveId,
fileSHA256,
recordNotes,
sameAs,
...fields // any other field exists in csv will be put into contentMetadata
} = data;
const contentFingerprints = [];
Expand Down Expand Up @@ -58,6 +59,7 @@ function convertFieldNames(data) {
author,
usageInfo: info,
recordNotes: recordNotes || ISCN_RECORD_NOTES,
sameAs,
};
}

Expand Down

0 comments on commit 8cb62ea

Please sign in to comment.