signal-desktop/ts/jobs/initializeAllJobQueues.ts

14 lines
426 B
TypeScript
Raw Normal View History

2021-04-29 23:02:27 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { removeStorageKeyJobQueue } from './removeStorageKeyJobQueue';
import { reportSpamJobQueue } from './reportSpamJobQueue';
2021-04-29 23:02:27 +00:00
/**
* Start all of the job queues. Should be called when the database is ready.
*/
export function initializeAllJobQueues(): void {
removeStorageKeyJobQueue.streamJobs();
reportSpamJobQueue.streamJobs();
2021-04-29 23:02:27 +00:00
}