Closed AT-Lorlando closed 2 years ago
You have an issue with a community package, not attachment-lite
.
Please, create an issue in their repository.
Hi @AT-Lorlando. Please submit your issue here: https://github.com/ndianabasi/adonis-responsive-attachment/issues
Package version
https://github.com/ndianabasi/adonis-responsive-attachment V 1.3.0
Node.js and npm version
Node version: v16.11.0 Npm version: 8.0.0
The error
When getting images from the databases, you can use
Image.query()
orDatabase.from(Image.table)
.When using
Database.from(Image.table)
, your SGBD return usable timestamp, so it can help to use this method. But, with versionV 1.3.0
of this packages, the image's url dosn't compute when usingDatabase.from(Image.table)
as you can see belowSample Code (to reproduce the issue)
Images models:
Query to fetch an image
Return this result:
But if you're using this method to fetch from db:
The result is:
I'm really sorry if this is normal, but, it worked on previous version
1.2.2
so i thought something happened since then