fix: missing paren, type error
This commit is contained in:
parent
4312393169
commit
e584937b4f
|
@ -340,7 +340,7 @@ export default function() {
|
||||||
export function destroy() {
|
export function destroy() {
|
||||||
deliverQueue.once('cleaned', async (jobs, status) => {
|
deliverQueue.once('cleaned', async (jobs, status) => {
|
||||||
deliverLogger.succ(`Cleaned ${jobs.length} ${status} jobs`);
|
deliverLogger.succ(`Cleaned ${jobs.length} ${status} jobs`);
|
||||||
await Promise.all(jobs.map(job => deletionRefCount(job));
|
await Promise.all(jobs.map(job => deletionRefCount(job)));
|
||||||
});
|
});
|
||||||
deliverQueue.clean(0, 'delayed');
|
deliverQueue.clean(0, 'delayed');
|
||||||
|
|
||||||
|
|
|
@ -150,17 +150,17 @@ export class DeliverManager {
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|
||||||
inboxes = inboxes.entries()
|
const filteredInboxes = Array.from(inboxes)
|
||||||
.filter(inbox => !instancesToSkip.includes(new URL(inbox).host));
|
.filter(inbox => !instancesToSkip.includes(new URL(inbox).host));
|
||||||
|
|
||||||
if (deletingUserId) {
|
if (deletingUserId) {
|
||||||
await Users.update(deletingUserId, {
|
await Users.update(deletingUserId, {
|
||||||
// set deletion job count for reference counting before queueing jobs
|
// set deletion job count for reference counting before queueing jobs
|
||||||
isDeleted: inboxes.length,
|
isDeleted: filteredInboxes.length,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
inboxes.forEach(inbox => deliver(this.actor, this.activity, inbox, deletingUserId));
|
filteredInboxes.forEach(inbox => deliver(this.actor, this.activity, inbox, deletingUserId));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue