From ab89cc39c6aabe962a4816188d86ed659237d75e Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Sat, 14 Oct 2023 08:56:46 +0200 Subject: [PATCH] Remove message --- src/api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api.ts b/src/api.ts index c370c2c..2e71158 100644 --- a/src/api.ts +++ b/src/api.ts @@ -140,14 +140,14 @@ export default class API { }) }) - let count = 1 + // let count = 1 const promises: Promise[] = [] for (const queueItem of this.uploadQueue) { // Get the result from check-files (if exists) const checkFile = res?.files.find((item: FileUpload) => item.hash === queueItem.data.hash && item.filetype === queueItem.data.filetype) if (checkFile?.url) { // File is already uploaded, just process the callback - status.setMessage(`Uploading attachment ${count++} of ${this.uploadQueue.length}...`) + // status.setMessage(`Uploading attachment ${count++} of ${this.uploadQueue.length}...`) queueItem.callback(checkFile.url) } else { // File needs to be uploaded @@ -155,7 +155,7 @@ export default class API { this.postRaw('/v1/file/upload', queueItem.data) .then((res) => { // Process the callback - status.setMessage(`Uploading attachment ${count++} of ${this.uploadQueue.length}...`) + // status.setMessage(`Uploading attachment ${count++} of ${this.uploadQueue.length}...`) queueItem.callback(res.url) resolve() })