Update lib/convertFormat.js
Browse files- lib/convertFormat.js +2 -2
lib/convertFormat.js
CHANGED
|
@@ -3,8 +3,8 @@ const FileType = require("file-type");
|
|
| 3 |
|
| 4 |
|
| 5 |
function allToJpg(bufferImage) {
|
| 6 |
-
return new Promise((resolve, reject) => {
|
| 7 |
-
FileType.fromBuffer(bufferImage)
|
| 8 |
.then((response) => {
|
| 9 |
try {
|
| 10 |
const buffers = [];
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
function allToJpg(bufferImage) {
|
| 6 |
+
return new Promise(async(resolve, reject) => {
|
| 7 |
+
await FileType.fromBuffer(bufferImage)
|
| 8 |
.then((response) => {
|
| 9 |
try {
|
| 10 |
const buffers = [];
|