🏗️ Fixed newImport to use env var

This commit is contained in:
2024-08-14 12:20:35 -04:00
parent aff4467b8b
commit 68907a96a2
2 changed files with 860 additions and 743 deletions

1600
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -174,7 +174,7 @@ export default class LibraryService extends Service {
// Convert klaw to use a promise-based approach for better flow control
const files = await this.getComicFiles(
COMICS_DIRECTORY
process.env.COMICS_DIRECTORY
);
for (const file of files) {
console.info(
@@ -187,7 +187,6 @@ export default class LibraryService extends Service {
path.extname(file.path)
),
});
if (!comicExists) {
// Send the extraction job to the queue
await this.broker.call("jobqueue.enqueue", {