mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-16 14:52:31 +00:00
error handling json hydration
This commit is contained in:
1 parent
b34371eef0
commit
7010d56bc3
1 file changed
+4
-1
+4
-1
@@ -93,7 +93,10 @@ WHERE
|
||||
.as_deref()
|
||||
.filter(|info| !info.trim().is_empty())
|
||||
.map(|info| MediaUploadModificationDetails::from_json(info))
|
||||
.transpose()?,
|
||||
.transpose()
|
||||
.map_err(|err| {
|
||||
anyhow!("Error parsing field `maybe_extra_file_modification_info` from JSON: {:?}", err)
|
||||
})?,
|
||||
creator_set_visibility: upload.creator_set_visibility,
|
||||
created_at: upload.created_at,
|
||||
updated_at: upload.updated_at,
|
||||
|
||||
Reference in new issue
Block a user