Skip to content

Commit

Permalink
[preprocessor/folder] remove asset_origin_signature
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jun 11, 2024
1 parent 4f0d8b1 commit daff6bc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions preprocessor/folder/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ func getProofModeFileMetadatas(filePath string) ([]map[string]any, error) {
assetOrigin := filepath.Join(strings.TrimPrefix(filePath, syncRoot), asset.Metadata.FilePath)

metadata := map[string]any{
"file_name": fileName,
"last_modified": asset.Metadata.FileModified,
"time_created": asset.Metadata.FileCreated,
"asset_origin_id": assetOrigin,
"asset_origin_signature": string(asset.AssetSignature),
"asset_origin_type": []string{"proofmode"},
"media_type": asset.MediaType,
"file_name": fileName,
"last_modified": asset.Metadata.FileModified,
"time_created": asset.Metadata.FileCreated,
"asset_origin_id": assetOrigin,
"asset_origin_type": []string{"proofmode"},
"media_type": asset.MediaType,
"proofmode": map[string]any{
"metadata": string(asset.MetadataBytes),
"meta_sig": string(asset.MetadataSignature),
Expand Down

0 comments on commit daff6bc

Please sign in to comment.