summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/QueueService.ts
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-11-17 20:10:16 +0100
committerMar0xy <marie@kaifa.ch>2023-11-17 20:10:16 +0100
commit4929467016f96b7610a1d1f9bc27f59b0796cfb5 (patch)
treef1605764ab944e35f5b9ace3cd54a59e3fef5075 /packages/backend/src/core/QueueService.ts
parentupd: keep choice in `indexable` migration update (diff)
downloadsharkey-4929467016f96b7610a1d1f9bc27f59b0796cfb5.tar.gz
sharkey-4929467016f96b7610a1d1f9bc27f59b0796cfb5.tar.bz2
sharkey-4929467016f96b7610a1d1f9bc27f59b0796cfb5.zip
upd: import own replies to own tweets
Diffstat (limited to 'packages/backend/src/core/QueueService.ts')
-rw-r--r--packages/backend/src/core/QueueService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/QueueService.ts b/packages/backend/src/core/QueueService.ts
index 887048349f..7135f1b1b4 100644
--- a/packages/backend/src/core/QueueService.ts
+++ b/packages/backend/src/core/QueueService.ts
@@ -272,8 +272,8 @@ export class QueueService {
}
@bindThis
- public createImportTweetsToDbJob(user: ThinUser, targets: string[]) {
- const jobs = targets.map(rel => this.generateToDbJobData('importTweetsToDb', { user, target: rel }));
+ public createImportTweetsToDbJob(user: ThinUser, targets: string[], note: MiNote['id'] | null) {
+ const jobs = targets.map(rel => this.generateToDbJobData('importTweetsToDb', { user, target: rel, note }));
return this.dbQueue.addBulk(jobs);
}