forked from FoundKeyGang/FoundKey
fix: missing paren, type error
This commit is contained in:
parent
4312393169
commit
e584937b4f
2 changed files with 4 additions and 4 deletions
|
@ -340,7 +340,7 @@ export default function() {
|
|||
export function destroy() {
|
||||
deliverQueue.once('cleaned', async (jobs, status) => {
|
||||
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');
|
||||
|
||||
|
|
|
@ -150,17 +150,17 @@ export class DeliverManager {
|
|||
)),
|
||||
);
|
||||
|
||||
inboxes = inboxes.entries()
|
||||
const filteredInboxes = Array.from(inboxes)
|
||||
.filter(inbox => !instancesToSkip.includes(new URL(inbox).host));
|
||||
|
||||
if (deletingUserId) {
|
||||
await Users.update(deletingUserId, {
|
||||
// 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