From 5b02c5185f97f146ffd24b42c6f01c36300c52cf Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 13 Apr 2022 04:55:39 -0500 Subject: [PATCH] Fix fs error library item --- client/components/cards/AuthorSearchCard.vue | 3 --- server/objects/LibraryItem.js | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/client/components/cards/AuthorSearchCard.vue b/client/components/cards/AuthorSearchCard.vue index 82029ac6..76e79543 100644 --- a/client/components/cards/AuthorSearchCard.vue +++ b/client/components/cards/AuthorSearchCard.vue @@ -21,9 +21,6 @@ export default { return {} }, computed: { - userToken() { - return this.$store.getters['user/getToken'] - }, name() { return this.author.name } diff --git a/server/objects/LibraryItem.js b/server/objects/LibraryItem.js index 6a4eb639..6b0de298 100644 --- a/server/objects/LibraryItem.js +++ b/server/objects/LibraryItem.js @@ -1,3 +1,4 @@ +const fs = require('fs-extra') const Path = require('path') const { version } = require('../../package.json') const Logger = require('../Logger')