From dd9c68cc311d04cf4842a799b7257fa9f253b9c3 Mon Sep 17 00:00:00 2001 From: William Chong Date: Tue, 11 Jun 2024 22:47:56 +0800 Subject: [PATCH] [preprocessor/folder] change all asset_origin to asset_origin_id --- preprocessor/folder/file.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/preprocessor/folder/file.go b/preprocessor/folder/file.go index 502fc81..39bf049 100644 --- a/preprocessor/folder/file.go +++ b/preprocessor/folder/file.go @@ -43,7 +43,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, @@ -78,11 +78,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 }