diff --git a/client/components/Search/Search.vue b/client/components/Search/Search.vue index 3ac28b4..e72fe47 100644 --- a/client/components/Search/Search.vue +++ b/client/components/Search/Search.vue @@ -204,7 +204,7 @@
-
+
{{ projectName }}
diff --git a/package-lock.json b/package-lock.json index 19fa89d..9b5a88e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "inpx-web", - "version": "1.2.1", + "version": "1.2.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "inpx-web", - "version": "1.2.1", + "version": "1.2.2", "hasInstallScript": true, "license": "CC0-1.0", "dependencies": { diff --git a/package.json b/package.json index 885c135..334f1fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "inpx-web", - "version": "1.2.1", + "version": "1.2.2", "author": "Book Pauk ", "license": "CC0-1.0", "repository": "bookpauk/inpx-web", diff --git a/server/core/RemoteLib.js b/server/core/RemoteLib.js index 122cdd9..8681931 100644 --- a/server/core/RemoteLib.js +++ b/server/core/RemoteLib.js @@ -58,9 +58,9 @@ class RemoteLib { } } - async downloadBook(bookPath, downFileName) { + async downloadBook(bookId) { try { - const response = await await this.wsRequest({action: 'get-book-link', bookPath, downFileName}); + const response = await await this.wsRequest({action: 'get-book-link', bookId}); const link = response.link; const buf = await this.down.load(`${this.remoteHost}${link}`, {decompress: false}); diff --git a/server/core/WebWorker.js b/server/core/WebWorker.js index b1d715c..a73deb5 100644 --- a/server/core/WebWorker.js +++ b/server/core/WebWorker.js @@ -354,7 +354,7 @@ class WebWorker { } } - async restoreBook(bookPath, downFileName) { + async restoreBook(bookId, bookPath, downFileName) { const db = this.db; let extractedFile = ''; @@ -364,7 +364,7 @@ class WebWorker { extractedFile = await this.extractBook(bookPath); hash = await utils.getFileHash(extractedFile, 'sha256', 'hex'); } else { - hash = await this.remoteLib.downloadBook(bookPath, downFileName); + hash = await this.remoteLib.downloadBook(bookId); } const link = `${this.config.filesPathStatic}/${hash}`; @@ -443,7 +443,7 @@ class WebWorker { } if (!link) { - link = await this.restoreBook(bookPath, downFileName) + link = await this.restoreBook(bookId, bookPath, downFileName) } if (!link)