fix(node): correct file property name in function switch (#10284)
This commit is contained in:
parent
302f4407f6
commit
08c731fd84
2 changed files with 47 additions and 4 deletions
|
|
@ -157,7 +157,7 @@ def _get_file_extract_string_func(*, key: str) -> Callable[[File], str]:
|
|||
return lambda x: x.type
|
||||
case "extension":
|
||||
return lambda x: x.extension or ""
|
||||
case "mimetype":
|
||||
case "mime_type":
|
||||
return lambda x: x.mime_type or ""
|
||||
case "transfer_method":
|
||||
return lambda x: x.transfer_method
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue