piclist 1.6.6 → 1.6.7

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/bin/picgo-server CHANGED
@@ -63,6 +63,7 @@ function showHelp() {
63
63
 
64
64
  let configPath = argv.c || argv.config || ''
65
65
  if (configPath !== true && configPath !== '') {
66
+ configPath = configPath.replace(/^~/, os.homedir())
66
67
  configPath = path.resolve(configPath)
67
68
  } else {
68
69
  configPath = ''
@@ -171,7 +172,7 @@ router.post('/upload', async ({ response, list = [], urlparams }) => {
171
172
  // upload with clipboard
172
173
  console.log('[PicList Server] upload clipboard file')
173
174
  const result = await picgo.upload()
174
- const res = result.imgUrl
175
+ const res = result[0].imgUrl
175
176
  console.log('[PicList Server] upload result:', res)
176
177
  if (res) {
177
178
  handleResponse({