@websolutespa/bom-mixer-image 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/image/image.handler.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -120,7 +120,7 @@ function getOriginalImage(url: string, domains: string[]): Promise<Buffer> {
|
|
|
120
120
|
});
|
|
121
121
|
} else {
|
|
122
122
|
// Reading the image from the file system
|
|
123
|
-
fs.readFile(url, (error, data) => {
|
|
123
|
+
fs.readFile(path.join(process.cwd(), 'public', url), (error, data) => {
|
|
124
124
|
if (error) {
|
|
125
125
|
return reject(error);
|
|
126
126
|
}
|