8000 ConversionCost is not implemented correctly · Issue #8 · ConvertAPI/convertapi-library-js · GitHub
[go: up one dir, main page]

Skip to content

ConversionCost is not implemented correctly #8

@tomasr78

Description

@tomasr78

There is a bug in ConversionCost implementation

https://github.com/ConvertAPI/convertapi-js/blob/ea02cab503c3e13a0904830c216855317f391ec4/src/result.ts#L28

The property bind to ConversionTime but should be ConversionCost. Also, property name duration() should be changed to conversionCost()

{
    "ConversionCost": 4,
    "Files": [
        {
            "FileName": "test.pdf",
            "FileExt": "pdf",
            "FileSize": 168878,
            "FileId": "4308b474f9cbd4ffaf7dbe038a30ff91",
            "Url": "https://v2.convertapi.com/d/4308b474f9cbd4ffaf7dbe038a30ff91/test.pdf"
        }
    ]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0