@feardread/fear 1.0.7 → 1.0.8

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.
@@ -109,7 +109,7 @@ exports.create = tryCatch(async (Model, req, res) => {
109
109
  ? documentData.images.split(',').map(item => item.trim())
110
110
  : documentData.images;
111
111
 
112
- const imageLinks = await cloud.uploadImages(imageArray);
112
+ let imageLinks = await cloud.uploadImages(imageArray);
113
113
 
114
114
  if (imageLinks) {
115
115
  documentData.images = imageLinks;
@@ -82,7 +82,7 @@ const uploadImages = async (files, chunkSize = 3) => {
82
82
 
83
83
  return imageLinks;
84
84
  } catch (error) {
85
- throw new Error(`Image upload failed: ${error.message}`);
85
+ throw new Error(`Image upload failed: ${error}`);
86
86
  }
87
87
  };
88
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feardread/fear",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {