summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue/processors
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-11-12 17:32:24 +0100
committerMar0xy <marie@kaifa.ch>2023-11-12 17:32:24 +0100
commitbc25b28a4ee46a4264ffe3f7e05ff6b58993fd15 (patch)
tree6519eefbd4d00e6cf5784dbd541a19d118418eee /packages/backend/src/queue/processors
parentupd: pass full thinuser (diff)
downloadsharkey-bc25b28a4ee46a4264ffe3f7e05ff6b58993fd15.tar.gz
sharkey-bc25b28a4ee46a4264ffe3f7e05ff6b58993fd15.tar.bz2
sharkey-bc25b28a4ee46a4264ffe3f7e05ff6b58993fd15.zip
fix: cleanup not available on development env
Diffstat (limited to 'packages/backend/src/queue/processors')
-rw-r--r--packages/backend/src/queue/processors/ImportNotesProcessorService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
index 9a9858304a..b209d7239c 100644
--- a/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
+++ b/packages/backend/src/queue/processors/ImportNotesProcessorService.ts
@@ -98,7 +98,7 @@ export class ImportNotesProcessorService {
return;
}
- const type = job.data.type ?? '';
+ const type = job.data.type;
if (type === 'Twitter' || file.name.startsWith('twitter') && file.name.endsWith('.zip')) {
const [path, cleanup] = await createTempDir();