ilhamdev commited on
Commit
0c7b8fd
·
verified ·
1 Parent(s): a36c555

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -2
index.js CHANGED
@@ -29,9 +29,9 @@ async function uploadBuffer(buffer) {
29
  }
30
  }).catch(e => reject(e))
31
  if (res.status !== 200) {
32
- resolve(res.statusText)
33
  } else {
34
- resolve(res.data)
35
  }
36
  })
37
  }
 
29
  }
30
  }).catch(e => reject(e))
31
  if (res.status !== 200) {
32
+ resolve(res?.statusText)
33
  } else {
34
+ resolve(res?.data?.url)
35
  }
36
  })
37
  }