Skip to content

Two files saved instead of one #7

@runlevelsix

Description

@runlevelsix

Thanks for your great jsreport plugin! I just got it setup and tested it with some sample reports, and it works as advertised, but with one minor issue - it appears to save 2 copies of the .pdf file to S3, and I'm not sure why...

I'm using the Postman REST client and POSTing this as my request body (with a Content-Type: application/json header):

{ 
   "template": { "shortid" : "4yxoH6IzW" },
    "options": { 
        "reports": { "save": true }
    }
}

The result in my S3 Bucket is two files with a one-second time-difference (in the filename).

I'm not sure if this is due to your plugin, or if jsreport is actually sending two 'afterRender' events. Are you aware of this issue? Have you experienced anything like this before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions