Skip to content

Commit

Permalink
[preprocessor/folder] change all asset_origin to asset_origin_id
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jun 11, 2024
1 parent 18b21b3 commit 4ba3995
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions preprocessor/folder/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func getProofModeFileMetadatas(filePath string) ([]map[string]any, error) {
"file_name": fileName,
"last_modified": asset.Metadata.FileModified,
"time_created": asset.Metadata.FileCreated,
"asset_origin": assetOrigin,
"asset_origin_id": assetOrigin,
"asset_origin_signature": string(asset.AssetSignature),
"asset_origin_type": []string{"proofmode"},
"media_type": asset.MediaType,
Expand Down Expand Up @@ -77,11 +77,11 @@ func getFileMetadata(filePath string, mediaType string) (map[string]any, error)
assetOrigin := filepath.Clean(strings.TrimPrefix(filePath, syncRoot))

return map[string]any{
"media_type": mediaType,
"asset_origin": assetOrigin,
"file_name": fileInfo.Name(),
"last_modified": fileInfo.ModTime().UTC().Format(time.RFC3339),
"time_created": fileInfo.ModTime().UTC().Format(time.RFC3339),
"media_type": mediaType,
"asset_origin_id": assetOrigin,
"file_name": fileInfo.Name(),
"last_modified": fileInfo.ModTime().UTC().Format(time.RFC3339),
"time_created": fileInfo.ModTime().UTC().Format(time.RFC3339),
}, nil
}

Expand Down

0 comments on commit 4ba3995

Please sign in to comment.